I want to make a graph where each element plotted is itself a graph. I can see how to use par(fig=) and viewport to do that, but they require (i think) me to do my own scaling as they are scaled to the graphics window. any advice on which approach I should take (just bite the bullet and do my own scaling), or is there something else I should try, or any examples I should look at. many thanks for any pointers. bernie leemon (aka gary mcclelland) [[alternative HTML version deleted]]
I'm trying to understand your question because when I think of a graph, I think of one canvas, on which, various functions are plotted (a function can be one point for example). So, when you say each 'element' do you mean each function? If so, then that seems to be asking how to plot a function per graph (which is probably obvious and not what you're asking) How about you clarify first :) On Aug 21, 2010, at 12:40 PM, Bernard Leemon wrote: I want to make a graph where each element plotted is itself a graph. I can see how to use par(fig=) and viewport to do that, but they require (i think) me to do my own scaling as they are scaled to the graphics window. any advice on which approach I should take (just bite the bullet and do my own scaling), or is there something else I should try, or any examples I should look at. many thanks for any pointers. bernie leemon (aka gary mcclelland) [[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.
We need a little bit of clarification. If you mean making a layout elements that are themselves graphs (i.e.a page with four graphs) then I like using ggplot2 for these types of things. hth Stephen Sefick On Sat, Aug 21, 2010 at 2:40 PM, Bernard Leemon <bernie.leemon at gmail.com> wrote:> I want to make a graph where each element plotted is itself a graph. ?I can > see how to use par(fig=) and viewport to do that, but they require (i think) > me to do my own scaling as they are scaled to the graphics window. ?any > advice on which approach I should take (just bite the bullet and do my own > scaling), or is there something else I should try, or any examples I should > look at. ?many thanks for any pointers. > > bernie leemon (aka gary mcclelland) > > ? ? ? ?[[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. >-- Stephen Sefick ____________________________________ | Auburn University? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? | | Department of Biological Sciences? ? ? ? ?? | | 331 Funchess Hall? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | | Auburn, Alabama? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? | | 36849? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | |___________________________________| | sas0025 at auburn.edu? ? ? ? ? ? ? ? ? ? ? ? ? ?? | | http://www.auburn.edu/~sas0025? ? ? ? ? ?? | |___________________________________| Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods.? We are mammals, and have not exhausted the annoying little problems of being mammals. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? -K. Mullis
The question isn't completely clear. I am guessing you want something like Figure 1.7 or Figure 7.18 in Paul Murrell's book. library(party) example(ctree) Rich On Sat, Aug 21, 2010 at 3:40 PM, Bernard Leemon <bernie.leemon@gmail.com>wrote:> I want to make a graph where each element plotted is itself a graph. I can > see how to use par(fig=) and viewport to do that, but they require (i > think) > me to do my own scaling as they are scaled to the graphics window. any > advice on which approach I should take (just bite the bullet and do my own > scaling), or is there something else I should try, or any examples I should > look at. many thanks for any pointers. > > bernie leemon (aka gary mcclelland) > > [[alternative HTML version deleted]] > > ______________________________________________ > 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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
In addition to the other suggestions you may also want to look at the subplot function in the TeachingDemos package (the version in Hmisc is a copy of a prior version of this one) as well as the my.symbols or panel.my.symbols functions in the same 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 Bernard Leemon > Sent: Saturday, August 21, 2010 1:41 PM > To: R-help at r-project.org > Subject: [R] graphing plots of plots > > I want to make a graph where each element plotted is itself a graph. I > can > see how to use par(fig=) and viewport to do that, but they require (i > think) > me to do my own scaling as they are scaled to the graphics window. any > advice on which approach I should take (just bite the bullet and do my > own > scaling), or is there something else I should try, or any examples I > should > look at. many thanks for any pointers. > > bernie leemon (aka gary mcclelland) > > [[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.