[R] Lattice: par.ylab.text alpha ?
FolkesM at pac.dfo-mpo.gc.ca
Thu Nov 1 17:32:42 CET 2007
Thanks Deepayan. I now see the meaning of "layout.widths".
I appreciate the reminder on alternating - it's been a while since I've
used it. However I don't think I'm out of the woods yet. This doesn't
seem to give me the flexibility of showing labels for just 1 axis, say
the left y-axis only?
From: Deepayan Sarkar [mailto:deepayan.sarkar at gmail.com]
Sent: October 31, 2007 10:58 PM
To: Folkes, Michael
Cc: r-help at r-project.org
Subject: Re: [R] Lattice: par.ylab.text alpha ?
On 11/1/07, Folkes, Michael <FolkesM at pac.dfo-mpo.gc.ca> wrote:
> wohoo! A bug. I know I wasn't the first to find it, but I had a
> hunch this time that it was going to be a bug and not just my poor
> understanding. I wasn't really thinking as just ylab="" works fine
> too. I think I was hoping to squeeze it (the ylab) closer to the axis
> w/o axis labels.
There's nothing specially meant for ylab, but you can supply a factor
for all layout widths and heights; e.g., compare
xyplot(1 ~ 1, ylab = "foo", par.settings = list(layout.widths =
list(ylab = 2))) xyplot(1 ~ 1, ylab = "foo", par.settings =
list(layout.widths = list(ylab = 0)))
> Now that we're on topic. If I turn off the axes lines using alpha, is
> there a way to turn on just axis 1/2/3/4?
Not sure exactly what you mean, but try variants of
xyplot(1 ~ 1, scales = list(alternating = 0/1/2/3, tck = 0/1))
More information about the R-help