Plot a PolySet as Polylines
Plot a PolySet as polylines.
plotLines (polys, xlim = NULL, ylim = NULL, projection = FALSE, plt = c(0.11, 0.98, 0.12, 0.88), polyProps = NULL, lty = NULL, col = NULL, bg = 0, axes = TRUE, tckLab = TRUE, tck = 0.014, tckMinor = 0.5 * tck, ...)
polys |
PolySet to plot (required). |
xlim |
range of X-coordinates. |
ylim |
range of Y-coordinates. |
projection |
desired projection when PolySet lacks a
|
plt |
four element numeric vector |
polyProps |
PolyData specifying which polylines to plot and their
properties. |
lty |
vector describing line types (cycled by |
col |
vector describing colours (cycled by |
bg |
background colour of the plot. |
axes |
Boolean value; if |
tckLab |
Boolean vector (length 1 or 2); if |
tck |
numeric vector (length 1 or 2) describing the length
of tick marks as a fraction of the smallest dimension. If
|
tckMinor |
numeric vector (length 1 or 2) describing the length of tick marks as a fraction of the smallest dimension. These tick marks can not be automatically labelled. If given a two-element vector, the first element describes the tick marks on the x-axis and the second element describes those on the y-axis. |
... |
additional |
The function creates a blank plot when polys
equals
NULL
. In this case, the user must supply both xlim
and
ylim
arguments. Alternatively, it accepts the argument
type = "n"
as part of ..., which is equivalent to specifying
polys = NULL
, but requires a PolySet. In both cases,
the function's behaviour changes slightly. To resemble the
plot
function, it plots the border, labels, and other
parts according to par
parameters such as col
.
For additional help on the arguments lty
and col
, please
see par
.
PolyData consisting of the PolyProp
s used to create the plot.
To satisfy the aspect ratio, this plotting routine resizes the plot
region. Consequently, par
parameters such as
plt
, mai
, and mar
will change. When the function
terminates, these changes persist to allow for additions to the plot.
Nicholas M. Boers, Associate Professor – Computer Science
MacEwan University, Edmonton AB
Last modified Rd: 2013-04-10
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)) #--- plot the PolySet plotLines(polys, xlim=c(-.5,1.5), ylim=c(-.5,1.5)) par(oldpar) })
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.