search for: dataab

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

Did you mean: data_b
2013 Mar 06
6
Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use of facet_grid?
...var2 = rnorm(120, mean = rep(c(6, 7, 8), each = 40), sd = 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 (me...