search for: datacd

Displaying 1 result from an estimated 1 matches for "datacd".

Did you mean: data_d
2013 Mar 06
6
Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use of facet_grid?
...d = rep(c(1, 2, 3), each = 20))) # Splitting data into 3 data frames (based on factor1) # If I could do this using for example facet_wrap() or facet_grid(), I would be very # happy! I have tried but failed that method. DataAB <- mydata[(mydata$factor1) %in% c("A", "B"), ] DataCD <- mydata[(mydata$factor1) %in% c("C", "D"), ] DataEF <- mydata[(mydata$factor1) %in% c("E", "F"), ] DataAB library(plyr) library(ggplot2) #Plot: levels A and B: # Summary (means etc) SummAB <- ddply(DataAB, .(factor3,factor1), summarize,...