Jannis:
I understand your confusion, but you need to read and follow the lattice
documentation more carefully. You may also wish to consider getting
Deepayan's book, which provides a gentler, less terse, and more organized
guide to lattice's complexities with many more examples.
Anyway, names(trellis.par.get()) shows you that there is NO component named
"top.padding" Rather, "top.padding" is one of the
components of the
"layout.heights" list which IS one of the components of the
trellis.par.get() settings list. To change the "top.padding" component
of
THIS list you therefore should do:
trellis.par.set(layout.heights = list(top.padding = .5))
(I'm not sure this will do what you want, but at least the call will be
correct.)
All this is explained in ?trellis.par.set.
Bert Gunter
Genentech Nonclinical Biostatistics
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On
Behalf Of Jannis
Sent: Wednesday, March 24, 2010 8:50 AM
To: r-help at r-project.org
Subject: [R] lattice: defining graphical parameters
Dears,
could anyone give me some advice how to change some plotting parameters for
a lattice graph?
I need to adjust the following:
-reduce outer margins (like par(mar=c(0,0,0,0)) with base graphs)
-modify positions of labels (like par(mpg=c(0,0,0)) with base graphs)
I already did some research, but got confused by the huge amount of settings
with the lattice objects.
I know that the road to success goes in this direction:
trellis.par.set(list(fontsize=list(text=8)))
But how are my specific arguments called? First tries like:
trellis.par.set(list(top.padding=0.5))
did not seem to have any effect.
Thanks for your help!
_________________________________
?gt ?ber einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
______________________________________________
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.