Dear R help contributers, I have several x,y scatter plots and I would like to plot them slightly offset, similar to: http://www.mathworks.com/matlabcentral/fx_files/24368/2/content/style4.jpg I've looked all over for this answer with no luck. Just a function name or previous example would probably be enough for me to figure it out. Thank-you in advance, Carly
Carly, Those aren't just slightly offset, that's a 3D plot. You might look into some of the 3D plotting packages for R, maybe scatterplot3d? Sarah On Mon, Feb 14, 2011 at 7:45 AM, Carly Huitema <carly.huitema at gmail.com> wrote:> Dear R help contributers, > > I have several x,y scatter plots and I would like to plot them > slightly offset, similar to: > http://www.mathworks.com/matlabcentral/fx_files/24368/2/content/style4.jpg > > I've looked all over for this answer with no luck. > Just a function name or previous example would probably be enough for > me to figure it out. > > Thank-you in advance, > Carly >-- Sarah Goslee http://www.functionaldiversity.org
Those types of plots can be very hard to read. A better approach would be to look at the lattice package or faceting in the ggplot2 package. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Carly Huitema > Sent: Monday, February 14, 2011 5:45 AM > To: r-help at r-project.org > Subject: [R] How can I slightly offset plots? > > Dear R help contributers, > > I have several x,y scatter plots and I would like to plot them > slightly offset, similar to: > http://www.mathworks.com/matlabcentral/fx_files/24368/2/content/style4. > jpg > > I've looked all over for this answer with no luck. > Just a function name or previous example would probably be enough for > me to figure it out. > > Thank-you in advance, > Carly > > ______________________________________________ > 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.