[R] smoothed contour lines

Andrea Storto andrea.storto at met.no
Tue Jan 6 17:52:07 CET 2009


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,

Thanks in advance

Andrea




More information about the R-help mailing list