Re: [R] plot and save as png

2013-03-21 Thread arun
-pi, 40*pi) dev.off() A.K. - Original Message - From: Sarah Goslee To: veepsirtt Cc: r-help Sent: Thursday, March 21, 2013 3:18 PM Subject: Re: [R] plot and save as png Hi, So when you run the code suggested: png(filename = "fname.png", width = 900, height = 600, units =

Re: [R] plot and save as png

2013-03-21 Thread Sarah Goslee
Hi, So when you run the code suggested: png(filename = "fname.png", width = 900, height = 600, units = 'px') layout(matrix(c(1,2,3,4), 4, 1, byrow = TRUE)) plot(sin, -pi, 10*pi) plot(sin, -pi, 20*pi) plot(sin, -pi, 30*pi) plot(sin, -pi, 40*pi) dev.off() exactly like that, you do not get a file n

Re: [R] plot and save as png

2013-03-21 Thread veepsirtt
Hi A.K This is working layout(matrix(c(1,2,3,4), 4, 1, byrow = TRUE)) plot(sin, -pi, 10*pi) plot(sin, -pi, 20*pi) plot(sin, -pi, 30*pi) plot(sin, -pi, 40*pi) dev.off() but if I add this line png(filename = "fname.png", width = 900, height = 600, units = 'px') no plot is generated. where is the