search for: formattedticksandlabels

Displaying 4 results from an estimated 4 matches for "formattedticksandlabels".

2007 Mar 29
2
error in lattice formattedTicksAndLabels.Date (PR#9590)
...ission from: (NULL) (128.165.24.206) I'm trying to plot some data from the past 12 months and the lattice package is not labeling the time axis correctly. It shows only two labels instead of the expected 12. The base graphics get it right. I think the problem is the commented-out line in formattedTicksAndLabels.Date in lattice's axis.R: ## z <- c(range, x[is.finite(x)]) The following example demonstrates the problem: require(lattice) #lattice_0.14-16 x <- rnorm(12) t <- seq( as.Date("2006-04-01"),by="month", length=12) plot(x~t) # Has labels "May",...
2007 Sep 11
1
POSIXct dates on x-axis using xyplot
I am using 'xyplot' in lattice to plot some data where the x-axis is a POSIXct date. I have data which spans a 6 month period, but when I plot it, only the last month is printed on the right hand side of the axis. I would have expected that at least I would have a beginning and an ending point so that I have a point of reference as to the time that the data spans. Here is some test
2007 Jul 30
1
duplicate DATE at in lattice scale handled differently from base graphics OR lattice numeric scales
When at, label chains contain duplicate at values, axis ticks are dropped. I believe this is handled incorrectly for Date ats in lattice 0.15-4 when compared to how it is handled for numeric, or for dates in base plot. This can result in mis-labelled axes in some circumstances. I have included executable examples. R: 2.5.0 numeric base plot: plot(1:10, axes=F); axis(1, at=c(2,4,4,6),
2005 Jun 14
2
lattice, panel.grid, and scales=list(tick.number=XXX)
I have a Lattice plot in which I want to adjust the number of tick marks used, and I want to have the drawn grid reflect that change. Here is what I'm doing: bwplot(var1 ~ var2, data=df, scales=list(tick.number=10), panel=function(...) { panel.grid(h=0,v=-1,...); panel.stripplot(col="gray40", pch="|", cex=2, ...); panel.bwplot(...); })