Displaying 1 result from an estimated 1 matches for "fcdata".
Did you mean:
dcdata
2011 Nov 08
3
ggplot2 reorder factors for faceting
...would like to reorder the 'infection' column of my data to reflect this.
Toy example below:
library(ggplot2)
# test data for ggplot reordering
genes <- (rep (c(rep('a',4), rep('b',4), rep('c',4), rep('d',4), rep('e',4), rep('f',4)) ,4))
fcData <- rnorm(96)
times <- rep(rep(c(2,6,24,48),6),4)
infection <- c(rep('InfA', 24), rep('InfB', 24), rep('InfC', 24), rep('InfD', 24))
infType <- c(rep('M', 24), rep('D',24), rep('M', 24), rep('D', 24))
# data is long format...