Skip to content

ggetho() multiplot data differs in adjacent rows #38

@cabaJr

Description

@cabaJr

Hello,
I'm experiencing some issues with the visualization of data using ggetho() function and the multiplot = 2 argument.

In particular, I found out that data are not consistent between rows, while instead the second half of a row should be repeated in the first half of the following row. (see image for clarification).

IMG_0937

Apparently this is more evident in those rows where the tiles are small, but when superimposing the two halves of the graph you can see that there is a slight difference in the height.

The snippet of code I used to generate the plot is

ggetho(sum, aes(x = t, z=counts_min),
       summary_time_window = 300,
       multiplot = 2,
       ) +
  theme_excel()+
  stat_ld_annotations(height = 1, alpha = 0.03, outline = NA, phase = 43200)+
  stat_bar_tile_etho()+
  facet_grid(Cabinet~gene)+
  ylab("")+
  ggtitle("Double plotted actogram", subtitle = "averaged by cabinet vs genotype, time window per each bin is 5'")

being the dataset 'sum' a timeserie table in long format, with a column for 'id' of different individues, 't' as progressing time
t <- seq(from = 0, to = 1295940, by = 60)
counts_ min is the column used for z axis and it has values ranging from 0 to 70
column named Cabinet and gene are factors that can assume only two different values each.

anybody has experienced the same issue/ knows how to solve this?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions