[R] NLME: using the layout option with the plot command
Mark Difford
mark_difford at yahoo.co.uk
Tue Jun 20 14:24:50 CEST 2006
Hi Greg,
Since you haven't yet had a response, you could distill this. It uses the pixel dataset from nlme() as an example.
## To get separate files, do this
postscript("c:\MyGraph%03.ps", onefile=F)
plot(Pixel, display = "Dog", inner = ~Side, layout=c(4,1))
dev.off()
## To get your layout into one file, as separate pages, do this
postscript("c:\MyGraph.ps", onefile=T)
plot(Pixel, display = "Dog", inner = ~Side, layout=c(4,1))
dev.off()
If you prefer pdf, then use : pdf(filename, onefile=F), &c. At the R prompt do : ?postscript (and ?pdf), and go on reading! Also have a look at setps() in package Hmisc.
Regards,
Mark.
Mark DiffordPh.D. candidate, Botany Department,
Nelson Mandela Metropolitan University,
Port Elizabeth, SA.
More information about the R-help
mailing list