I have the following code, that generate the seperate plots. I want to get all these plots in one grid. How this can be done.? Is there alternative method in lattice to get the similar plots?
v1 <- rep(c(2,4,6,8,10), each = 6)
v2 <- rep(1:3,10)
v3 <-runif(30,0.01,0.3)
combined_data <- data.frame(v1,v2,v3)
library(ggplot2)
ggplot(combined_data,aes(x=v2,y=v3))+
stat_summary(fun.y=mean,geom="line",color="blue",linetype=2)+
stat_summary(fun.y=mean,geom="point", pch=1,size=3)+
scale_x_continuous(breaks=combined_data$v2)+
facet_grid(~v1)+
theme_bw()