[R] Party plots SOLVED

AnnieE aelmore at usgs.gov
Fri Sep 4 15:50:14 CEST 2009


"Quote from Petr PIKAL"

>  No, no. Here you need to do your plotting routine. 

>  Something like

>  plot(1:10, rnorm(10))

>  Now you can open it by e.g. Acrobat Reader or any suitable programme. Do 
>  not forget to quit from Acrobat when trying to use the file again, if it 
>  is opened it can not accept data from R.

>  Regards
>  Petr

"quote"

Ah.  This process finally makes sense.  Thank you so much.  I initially
thought we were taking a pdf export of the graphic produced inside the R
workspace and re-arranging it into a larger space (somehow...  ???).  But
your comment suggests to me that I'm actually bringing my results (not the
graphic) into the pdf device and then plotting them.  Duh.  So this is what
I did, based on that suggestion:

# opening a large pdf with of my ctree object
   pdf("PCA27R_7_ct ", height = 15, width = 20) 

# plotting the pdf
   plot(PCA27R_7_ct, terminal_panel = node_hist(PCA27R_7.ct, ymax = 50000,
horizontal = FALSE, freq = TRUE))

# turning off the acrobat driver
   dev.off()

It finally produced my 20" X 15" pdf, rather than the 5.57" X 5.57" default
I was getting previously.  Man the learning curve for newbie programmers...

I cannot tell you guys how helpful it is to have folks like you out there,
willing to wade through our messes and offer assistance.

Many thanks,
Annie


-- 
View this message in context: http://www.nabble.com/Party-plots-tp25277282p25294703.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list