Re: [R] How can I obtain smooth lines in graphs?

From: Marc Schwartz <marc_schwartz_at_comcast.net>
Date: Wed, 20 Jun 2007 19:20:26 -0500

On Wed, 2007-06-20 at 17:05 -0700, Judith Flores wrote:
> Hi,
>
> I need to plot lines in a graph, but when I run the
> corresponding commands I obtain pixel-like lines, they
> need to be smooth, is there a way to do this?
>
> Thank you,
>
> Judith

Judith,

You will need to provide more information (version of R, OS, output device, etc.) and some sample code.

If you are generating a bitmapped image file such as PNG or JPEG, as opposed to a vector based image such as PDF, EPS or WMF/EMF then there is not much you can do with respect to the pixelation of curved/angled lines or curves/angles in text. You can increase the dpi (dots per inch) to enhance the relative resolution (at the expense of a larger file), but the image quality is still dependent on the device upon which the image is viewed.

Pending further information, if you need high quality output, depending upon the intended use, then you want to use vector based images.

HTH, Marc Schwartz



R-help_at_stat.math.ethz.ch 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. Received on Thu 21 Jun 2007 - 00:25:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Jun 2007 - 01:33:52 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.