[R-sig-Geo] spplot legends for each subplot

Ingo Holz Ingo.Holz at uni-hohenheim.de
Sat Nov 10 13:02:52 CET 2007


Hi,

it only happens using png(). It does not if I *.emf, *.jpg or *.bmp.

A simple reproducable example (from the print.trellis help file):

##########################
outfile <- ".../outfile.png"   ###  ... = your output directory

p11 <- histogram( ~ height | voice.part, data = singer, xlab="Height", 
main="Ingo's title")
p2 <- histogram( ~ height, data = singer, xlab = "Height")

png(outfile, width=800, height=800)
print(p11, split=c(1,1,1,2), more=TRUE)
print(p2, split=c(1,2,1,2))
dev.off()

########################

I use R 2.6.0 (2007-10-03) on WindowsXP.

Thanks, Ingo




More information about the R-sig-Geo mailing list