Displaying 4 results from an estimated 4 matches for "calculateaxiscompon".
2003 Oct 21
0
summary - controling x-labels in xyplot (lattice) when x is POSIX object
Hi,
The solution to my problem is to use
lattice:::calculateAxisComponents to calculate appropriate labels
for the time axis in trellis plots.
# For example, given
x <- seq.POSIXt(strptime("2003/01/01", format = "%Y/%m/%d"),
strptime("2003/10/01", format = "%Y/%m/%d"), by = "month")
y <- rnorm(l...
2003 Oct 20
1
controling x-labels in xyplot (lattice) when x is POSIX object
..., data = dat, type = "b")
However, the labelling for the x-axis is not what I want.
(I see only one tick mark and one label ('Oct').)
What is the recommended way to relabel the x-axis?
Ideally, I want to see several months (3-6) labelled along the x-axis.
Previously, I used 'calculateAxisComponents' to massage the labels manually
but that function (which I realise was internal to lattice) is no longer available.
I am on Windows XP, R 1.8.0.
Regards,
John.
John Gavin <john.gavin at ubs.com>,
Quantitative Risk Models and Statistics,
UBS Investment Bank, 6th floor,
100 Liverpo...
2008 May 27
2
Lattice zoo plot: no x ticks on first panel
...s, panel=panel.xyplot, ...) {
opar <- trellis.par.get("clip");
trellis.par.set(clip=list(panel="off", strip="off"));
on.exit(trellis.par.set(opar));
panel.abline(h=current.panel.limits()$ylim[1], col="black", lwd=1, lty=1);
lAxis <- lattice:::calculateAxisComponents(x);
panel.axis(side="bottom", line.col="black", at=lAxis$at,
ticks=TRUE, draw.labels=FALSE, outside=TRUE, check.overlap=FALSE);
panel.plot.default(x=x, y=y, subscripts=subscripts, groups=groups, panel=panel, ...);
}
z <- zoo(cbind(a = 1:5, b = 11:15, c = 21:25)...
2003 Apr 27
2
bug and proposed fix in print.trellis 1.7.0 (PR#2859)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---1678264062-154654637-1051422990=:2626055
Content-Type: TEXT/PLAIN; charset=US-ASCII
---1678264062-154654637-1051422990=:2626055
Content-Type: TEXT/PLAIN; charset=US-ASCII;