Re: [R] graphing plots of plots

2010-08-24 Thread Greg Snow
] 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

[R] graphing plots of plots

2010-08-21 Thread Bernard Leemon
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

Re: [R] graphing plots of plots

2010-08-21 Thread r.ookie
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

Re: [R] graphing plots of plots

2010-08-21 Thread stephen sefick
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.lee...@gmail.com wrote: I want to

Re: [R] graphing plots of plots

2010-08-21 Thread Barry Rowlingson
On Sat, Aug 21, 2010 at 8:48 PM, r.ookie r.oo...@live.com wrote: 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

Re: [R] graphing plots of plots

2010-08-21 Thread RICHARD M. HEIBERGER
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.lee...@gmail.comwrote: I want to make a graph where each element plotted is

Re: [R] graphing plots of plots

2010-08-21 Thread baptiste auguie
Hi, I think you could do it quite easily with lattice, library(lattice) latticeGrob - function(p, ...){ grob(p=p, ..., cl=lattice) } drawDetails.lattice - function(x, recording=FALSE){ lattice:::plot.trellis(x$p, newpage=FALSE) } plots - replicate(4,

Re: [R] graphing plots of plots

2010-08-21 Thread r.ookie
I'm glad he asked that question, I found Barry's and your suggestion useful for myself. Thanks! (R surprises me every day). On Aug 21, 2010, at 1:12 PM, RICHARD M. HEIBERGER wrote: The question isn't completely clear. I am guessing you want something like Figure 1.7 or Figure 7.18 in Paul

Re: [R] graphing plots of plots

2010-08-21 Thread Dennis Murphy
Once you load library(grid) the rest works. Nice job :) Dennis On Sat, Aug 21, 2010 at 1:15 PM, baptiste auguie baptiste.aug...@googlemail.com wrote: Hi, I think you could do it quite easily with lattice, library(lattice) latticeGrob - function(p, ...){ grob(p=p, ..., cl=lattice)

Re: [R] graphing plots of plots

2010-08-21 Thread Bernard Leemon
many useful suggestions that I'll work on, especially babtiste's detailed code. yes, I want something like Fig 1.7, or 7.18, or 7.22, but where the x,y values are characteristics of the mini-histogram that is plotted. attached (if it makes it through) is what i'm trying to do in R. On Sat, Aug

Re: [R] graphing plots of plots

2010-08-21 Thread Bernard Leemon
I've now tried Babtiste's code and my reaction is WOW! it shows me how to do just what I need to do. I know enough to follow all the code but it would have taken me a LOOO time to generate it. thank you Babtiste! gary On Sat, Aug 21, 2010 at 2:15 PM, baptiste auguie