Re: [R] Cannot save histogram picture when run from script

2008-02-01 Thread Dieter Menne
Ng Stanley gmail.com> writes: > I am faced with a strange problem. My picture file is empty when the > following statements were run from R script. But the picture file shows up > correctly, when the commands are individually run from Rgui. > > png(file="histogram_correlation.png", bg = "white")

[R] Cannot save histogram picture when run from script

2008-01-31 Thread Ng Stanley
Hi, I am faced with a strange problem. My picture file is empty when the following statements were run from R script. But the picture file shows up correctly, when the commands are individually run from Rgui. png(file="histogram_correlation.png", bg = "white") require(stats) histogram( ~ height |