Dear All, I would like to ask a question on how to do overlay plots in each subgraph of xyplot. 1. I did simulations for m=1000, 2500, 5000, 10000, as the sample sizes. 2. for each sample size value m, 4 graphs are generated; each graph contains overlayed comparisons between 4 methods, 3. now I want put them into a 4-by-4 plot by xyplot, i.e., 4 sample size values, each of which has 4 plots. I know how to do this using plot, but the spaces between subplots are big. I do not know how to make each subplot in xyplot an overlayed one as it would appear using plot. Any help would be appreciated! Thank you, Chee [[alternative HTML version deleted]]
R. Michael Weylandt
2012-Mar-10 17:20 UTC
[R] Help on subgraphs in xyplot of lattice library
What does your data look like....dput() is your friend. Also, it'd be helpful if you could give base graphics code for more-or-less what you are looking for (since you can do so already) as it's pretty hard to describe graphics without pictures. Running example(xyplot) might help you get started as well. Michael On Sat, Mar 10, 2012 at 12:04 PM, Chee Chen <chee.chen at yahoo.com> wrote:> Dear All, > I would like to ask a question on how to do overlay plots in each subgraph of xyplot. > 1. ?I did simulations for m=1000, 2500, 5000, 10000, as the sample sizes. > 2. for each sample size value m, ?4 graphs are generated; each graph contains overlayed comparisons between 4 methods, > 3. ?now I want put them into a 4-by-4 ?plot by xyplot, i.e., ?4 sample size values, each of which has 4 plots. > > I know how to do this using plot, but the spaces between subplots are big. > > I do not know how to make each subplot in xyplot an overlayed one as it would appear using plot. > > Any help would be appreciated! > > Thank you, > Chee > > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.