Dieter Menne
2005-Mar-11 07:35 UTC
[R] xlab cex bug in Lattice/grid and multipage-output (Windows only?)
The following problem seems to be Windows-specific. Deepayan informed me
that it cannot be reproduced on "platform i386-pc-linux-gnu".
-----
library(lattice)
trellis.device("png", file="sepal%02d.png",color=T,
theme="col.whitebg")
p=xyplot(Sepal.Length + Sepal.Width ~ Petal.Length + Petal.Width | Species,
data = iris, scales = "free", layout = c(1, 1)
)
print(p)
dev.off()
----
Compare the x-label on the first and on all following pages: font size is
different.
Same for bmp. Does not occur on multipage-devices such as ps.
By comparing with the png files from Deepayan/Linux, I believe that only the
first xlab has the correct small size, and all others are not correct.
My version: (all libraries updated today)
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 0.1
year 2004
month 11
day 15
language R
Uwe Ligges
2005-Mar-12 15:34 UTC
[R] xlab cex bug in Lattice/grid and multipage-output (Windows only?)
Dieter Menne wrote:> The following problem seems to be Windows-specific. Deepayan informed me > that it cannot be reproduced on "platform i386-pc-linux-gnu". > > ----- > library(lattice) > trellis.device("png", file="sepal%02d.png",color=T, theme="col.whitebg") > p=xyplot(Sepal.Length + Sepal.Width ~ Petal.Length + Petal.Width | Species, > data = iris, scales = "free", layout = c(1, 1) > ) > > print(p) > dev.off()Works with a recent version of R-devel (and corresponding version of lattice), so seems to be fixed. Uwe Ligges> ---- > > Compare the x-label on the first and on all following pages: font size is > different. > Same for bmp. Does not occur on multipage-devices such as ps. > By comparing with the png files from Deepayan/Linux, I believe that only the > first xlab has the correct small size, and all others are not correct. > > My version: (all libraries updated today) > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major 2 > minor 0.1 > year 2004 > month 11 > day 15 > language R > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html