[R] Saving dns2.plot as a jpg image

From: Martin Heller <maheller_at_gmail.com>
Date: Sat 10 Jun 2006 - 01:00:10 EST

I am using R 2.2.1 with sn 0.4.0 and am trying to save a dns2.plot as a jpg file.

Here is the latest version of the code I have tried:

x <- seq(0,200,length=200)
y <- seq(0, 35, length=200)

jpeg(filename = "C:/fig1.jpg", width = 5, height = 4,pointsize = 12, quality = 100, bg = "white", res = NA)
par(mfrow=c(1,2),plt=c(.15,.99,.15,.95),mgp=c(1.5,1,0),tcl=-.25,cex.axis=.8) dsn2.plot
(x,y,xi=c(29,6),Omega=matrix(c(2580,458,458,84),2),alpha=c(5482940,-2120750)) dst2.plot(x,y, xi=c(29,6),Omega=matrix(c(2065,380,380,72),2),alpha =c(48,-13),df=10)

I've also tried using graphics.off().
Any help would be greatly appreciated?
Martin Heller

        [[alternative HTML version deleted]]

R-help@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 Received on Sat Jun 10 06:46:51 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 11 Jun 2006 - 05:34:59 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.