Are you looking for facet_wrap? facet_grid usually has two grouping variables... --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity.
On May 2, 2014 4:50:08 PM PDT, Charlie Nagle <cna...@me.com> wrote: >Hello, > >I'm trying to figure out how to panel scatter plots of participant data >in R using the ggplot2 package. I do not want to display separate >variables, I simply want to create a 4 by 4 or 5 by 5 grid of scatter >plots that represent the data of each individual participant since I am >looking at longitudinal data and wish to examine it visually. > >I am currently generating basic plots with the function: >p+geom_point()+facet_grid(~ID). This generates all of the plots, but in >a single row that is not easy to visualize. Any help you can provide on >the appropriate command syntax is greatly appreciated! > >Sincerely, >Charlie > >______________________________________________ >R-help@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. ______________________________________________ R-help@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.