-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 =
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
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
3 matches
Mail list logo