"Director, Beracah Yankama" <[EMAIL PROTECTED]> writes: > Hi, > I am trying to generate plots on our unix (no X) server to be included > in our web-pages -> specifically pngs. > > Without X, png() obviously doesn't work, so I have been trying to > define the graphics print device bitmap as described in the help: > > > bitmap(file="plot.png", type = "png256", height = 6, width=6,res=72) > > pie(c(12,5)) > > dev2bitmap(file="plot.png", type = "png256", height = 6, width = > 6,res=72) > > I end up with "plot.png" as a nonzero png file, but it is always > blank... I have gs 6.51 installed & R_GSCMD=/usr/bin/gs set.
Try forgetting the dev2bitmap() line and just terminate the device with dev.off(). -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html