I have been using the following so far without having any problems: dev.copy(png,"sample.png",width=8, height=10, units="in",res=500) dev.off()
On Tue, Apr 16, 2013 at 6:32 PM, <jt...@mappi.helsinki.fi> wrote: > Hi, > I want to save a plot in the windows device as png and the default > resolution is 72dpi. Is it possible to increase the default resolution to > for example 300 dpi? > I have thought of using function png(..., res=300), but the problem is > that the figure produced this way looks different than the one shown in the > windows device. One notable difference is the missing of some ticks in the > x axis. Therefore I would rather to produce the figure in a window device > and then save it as a png. Unfortunately in the device window there is no > such an option to change the resolution. > Little information can be found so far. Any ideas are appreciated! > > Best, > Jing > > ______________________________**________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help> > PLEASE do read the posting guide http://www.R-project.org/** > posting-guide.html <http://www.R-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.