Skip to content

Shapefiles

1 message · Roger Bivand

#
On Thu, 9 Feb 2006, Tarmo Remmel wrote:

            
No, the plot window is committed to the device, and (re)-capturing the 
objects there as polygon objects will be messy. You'll need to generate an 
object that can be drawn as a sequence of straight line segments, and 
create a polygon object from that, from the x,y coordinates of the centre 
and the radius, or major/minor axes lengths and orientations. There is 
some code on:

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/56190.html

(see RSiteSearch("circle"))

but I don't know if it will suit your purposes. Once constructed, the 
polygons can be built into an object for exporting.