Description Usage Arguments Details Value Author(s) See Also Examples
Add a PolySet to an existing plot, where each unique (PID
,
SID
) describes a polyline.
1 2 |
polys |
PolySet to add (required). |
xlim |
range of X-coordinates. |
ylim |
range of Y-coordinates. |
polyProps |
PolyData specifying which polylines to plot and their
properties. |
lty |
vector of line types (cycled by |
col |
vector of colours (cycled by |
arrows |
Boolean value; if |
... |
additional |
The plotting routine does not connect the last vertex of each discrete
polyline to the first vertex of that polyline. It clips polys
to xlim
and ylim
before plotting.
For additional help on the arguments lty
and col
, please
see 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: 2013-04-10
calcLength
,
clipLines
,
closePolys
,
convLP
,
fixBound
,
fixPOS
,
locatePolys
,
plotLines
,
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
plotLines(polys, xlim=c(-.5,1.5), ylim=c(-.5,1.5), projection=1)
#--- add the PolySet to the plot (in a different style)
addLines(polys, lwd=5, col=3)
par(oldpar)
})
|
sh: 1: cannot create /dev/null: Permission denied
-----------------------------------------------------------
PBS Mapping 2.70.4 -- Copyright (C) 2003-2018 Fisheries and Oceans Canada
PBS Mapping comes with ABSOLUTELY NO WARRANTY;
for details see the file COPYING.
This is free software, and you are welcome to redistribute
it under certain conditions, as outlined in the above file.
A complete user guide 'PBSmapping-UG.pdf' is located at
/usr/lib/R/site-library/PBSmapping/doc/PBSmapping-UG.pdf
Packaged on 2017-06-28
Pacific Biological Station, Nanaimo
All available PBS packages can be found at
https://github.com/pbs-software
To see demos, type '.PBSfigs()'.
-----------------------------------------------------------
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.