[R] Plotting + saving to file on Linux
Peter Dalgaard
P.Dalgaard at biostat.ku.dk
Thu Nov 22 16:30:27 CET 2007
peter360 wrote:
> Maura,
> The following worked for me. Hope it helps.
>
> I did a plot, the graphics showed up on my screen. Then I did
> dev.copy2eps(), the graphics was saved to a file called Rplot.eps.
>
> I tried dev.copy(pdf) or dev.copy(png), but for some reason they generated 0
> sized files for me. I didn't figure out what happened for these formats
You likely forgot dev.off() after dev.copy.
--
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list