On Nov 3, 2010, at 11:13 AM, Neba Funwi-Gabga wrote:

Hello UseRs,
I need help on how to plot several raster images (such as those obtained
from a kernel-smoothed intensity function) in a layout
such as that obtained from the lattice package. I would like to obtain
something such as obtained from using the "levelplot" or "xyplot"
in lattice. I currently use:

par(mfrow=c(3,3)

to set the workspace, but the resulting plots leave a lot of blank space
between individual plots. If I can get it to the lattice format,
I think it will save me some white space.

(It's not clear what plotting paradigm you are using since you do not name a particular function or package, but this assumes you will be using lattice. If you are using base graphics, then the answer is undoubtedly ?par
)

In the archives are examples you might use to look up in the documentation and then to modify to fit you specifications:

http://finzi.psych.upenn.edu/R/Rhelp02/archive/58102.html

trellis.par.set(list(layout.widths = list(left.padding = -1)))
trellis.par.set(list(layout.widths = list(right.padding = -1,
 ylab.axis.padding = -0.5)))

http://finzi.psych.upenn.edu/R/Rhelp02/archive/62912.html

theme.novpadding <- list(layout.heights =
    list(top.padding = 0,
         main.key.padding = 0,
         key.axis.padding = 0,
         axis.xlab.padding = 0,
         xlab.key.padding = 0,
         key.sub.padding = 0,
         bottom.padding = 0))

Both citations hound with search "space between lattice plots"

--
David Winsemius, MD
West Hartford, CT

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to