You don't provide reproducible code and your space bar seems to
be broken (or perhaps, you're trying to save bandwidth by
minimizing the number of characters sent), but this may be
what you're after:
myspacing <- 0.5
xyplot(Sepal.Length ~ Petal.Length | Species, data = iris,
layout = c(3,1),
par.settings = list(layout.widths = list(ylab.axis.padding =
myspacing)))
Fiddle with myspacing until you're satisfied.
BTW, you probably don't need 'aspect = "fill"' since that's
the default (unless you've reset that in global lattice options).
-Peter Ehlers
willow1980 wrote:
Dear R users,
I encounter a problem regarding space control in xyplot. Basically, I want
to control spaces between label, tick and axis. I remember there is a
function called mgp in general plot. Is there a similar function for xyplot
or xYplot?
Below is my basic code:
myplotkid<-xyplot(expected_offspringnumber~afr|decade,groups=SES,data1,
auto.key=list(space="right"),layout=c(9,1),xlab="",ylab="Offspring number",
aspect="fill",scales=list(x=list(draw=F)),strip=T)
By the way, since there is no x-axis, I just want to control space
parameters in y-axis. Does someone have any idea to fulfil this aim?
Thank you very much for kind help!
Best regards,
Jianghua
--
Peter Ehlers
University of Calgary
403.202.3921
______________________________________________
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.