[R] Saving color2D.matplot plots to a file

Garcia Carreras, Bernardo bernardo.garcia-carreras08 at imperial.ac.uk
Fri Nov 21 19:46:08 CET 2008


Hi,

I am trying to figure out how to save plots produced with
color2D.matplot to a file, any format. I have tried:

jpeg() / png()
color2D.matplot(x,c(1,0),c(1,0),c(1,0))
dev.off()

as well as 

dev.new()
dev.print(device=png,file="myfreakinplot2.png") #(and jpeg, ps, pdf,
eps, together with dev.copy() as well...)
color2D.matplot(x,c(1,0),c(1,0),c(1,0),show.legend=TRUE)
dev.off()

to no avail. Does anyone have any suggestions?

Thanks!

Bernardo



More information about the R-help mailing list