[R] smoothed contour lines

Deepayan Sarkar deepayan.sarkar at gmail.com
Wed Jan 7 20:07:20 CET 2009


On Tue, Jan 6, 2009 at 8:52 AM, Andrea Storto <andrea.storto at met.no> wrote:
> Hi all,
>
> I'm trying to draw a contour plot
> with rounded (smoothed) contour lines instead of sharp angles;
> when the grid consists of only a few points
> in x- and y- axis, the resulting contour
> is in facts rather ugly since very sharp angles may appear.
>
> I did not find any way to do it,
> by using either "contour" or "contourplot" (from the lattice package),
> I wonder if there exist a way for smoothing the angles,
> apart from artificially increasing the grid resolution,

?filled.contour is something to try out.

-Deepayan




More information about the R-help mailing list