Skip to content
Prev 343367 / 398506 Next

Filled vector contours

On 24/08/2014 08:51, Jan Tosovsky wrote:
But the region between two contours is not in general a closed polygon.
Neither of those are 'in R'!

So you need to define your terms, precisely.  How can a polygon (with 
piecewise linear boundaries) be 'smooth'?

But you could get a long way by looking at the following

?contourLines
?polygon
?grid::grid.polygon

all of which are part of R.  R is a fully-fledged programming language 
and you could write SVG directly from R: using the svg device is limited 
by the steps to the R graphics primitives (see the 'R Internals' manual) 
and cairographics.