[STATSGRASS] Extracting coordinates of contours from R

Agustin Lobo alobo at ija.csic.es
Wed Mar 20 05:48:52 EST 2002


And also function contours(). The most general approach would be 
writing a dxf file, but the problem is that these functions
(at least countours, which is plot3d.c) do not have the option
of providing the xy coordinates of the vertices (i.e., 2 vectors
that could actually be plotted with lines()). 

Agus

Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es


On Tue, 19 Mar 2002, Bill Kristan wrote:

> Has anyone found a way to extract contours from R in a way that can be used 
> as vectors in GRASS? I want to take the contours from a kernel density 
> estimate from the package "sm" (using display="slice") and use them in GRASS. 
> As far as I know all of the contour functions in R only plot to the screen, 
> but the contours are not returned.
> 
> Another possible way to do this is to use R-GRASS packages kde2d.G function, 
> import the resulting raster map into GRASS and then do the contouring there. 
> However, kde2d.G gives probability densities, whereas I'm trying to get 
> contours that enclose a particular proportion of the cumulative probability. 
> I would be just as happy to do the contouring in GRASS, if anyone can give me 
> a hint about how to get cumulative probability contours.
> 
> Thanks for the help,
> 
> Bill Kristan.
> 
> _______________________________________________
> statsgrass mailing list
> statsgrass at grass.itc.it
> http://grass.itc.it/mailman/listinfo/statsgrass
> 




More information about the grass-stats mailing list