Hello List,

I have some plots with the wireframe() function, and I'd like to
display them in a single jpeg file. I know that par(mfrow=c(x,y)) will
divide my display window in x rows and y columns, and although this
works with plot(), it looks like it's not working with wireframe.
here's my code:

library(lattice)
library(Cairo)
CairoJPEG("wiley-rank.jpeg", width=960, height=480, quality=100, dpi=600)
par(mfrow=c(2,4))
for(i in c(6,8,10,12,14,16,18,20)){
        title<-paste(i,"-rank.txt",sep="")
        rank<-as.matrix(read.table(title, header=TRUE), 
nrow=5,ncol=4,byrow=FALSE)
        colnames(rank)<-c(.25,0.50,0.75,1.00)
        wireframe(rank, scales=list(arrows=FALSE), drape=TRUE, colorkey=TRUE,
xlab="η", ylab="π",zlab="corr", screen = list(z = 45, x = -70),
zlim=c(0,1), main="Rank")
}
dev.off()

any help more than welcome...

best regards,
Simone

-- 
Dr. Simone Gabbriellini

DigitalBrains srl
Amministratore

mobile: +39 3403975626
mail: simone.gabbriell...@gmail.com

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to