Description Usage Arguments Details Value Author(s) See Also Examples
Add a PolySet to an existing plot, where each unique (PID
,
SID
) describes a polygon.
1 2 3 
polys 
PolySet to add (required). 
xlim 
range of Xcoordinates. 
ylim 
range of Ycoordinates. 
polyProps 
PolyData specifying which polygons to plot and their
properties. 
border 
vector describing edge colours (cycled by 
lty 
vector describing line types (cycled by 
col 
vector describing fill colours (cycled by 
colHoles 
vector describing hole colours (cycled by 
density 
vector describing shading line densities (lines per
inch, cycled by 
angle 
vector describing shading line angles (degrees, cycled by

... 
additional 
The plotting routine connects the last vertex of each discrete polygon
to the first vertex of that polygon. It supports both
borders (border
, lty
) and fills (col
,
density
, angle
). It clips polys
to xlim
and ylim
before plotting.
For additional help on the arguments border
, lty
,
col
, density
, and angle
, please see
polygon
and par
.
PolyData consisting of the PolyProp
s used to create the plot.
Nicholas M. Boers, Associate Professor – Computer Science
MacEwan University, Edmonton AB
Last modified Rd: 20130410
addLabels
,
addStipples
,
clipPolys
,
closePolys
,
fixBound
,
fixPOS
,
locatePolys
,
plotLines
,
plotMap
,
plotPoints
,
plotPolys
,
thinPolys
,
thickenPolys
.
1 2 3 4 5 6 7 8 9 10 11  local(envir=.PBSmapEnv,expr={
oldpar = par(no.readonly=TRUE)
# create a PolySet to plot
polys < data.frame(PID=rep(1,4),POS=1:4,X=c(0,1,1,0),Y=c(0,0,1,1))
polys < as.PolySet(polys, projection=1)
# plot the PolySet
plotPolys(polys,xlim=c(.5,1.5),ylim=c(.5,1.5),density=0,projection=1)
# add the PolySet to the plot (in a different style)
addPolys(polys,col="green",border="blue",lwd=3)
par(oldpar)
})

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.