Description Usage Arguments Details Value Note Author(s) See Also Examples
Plot EventData/PolyData, where each unique EID
or
(PID
, SID
) describes a point.
1 2 3 4 
data 
EventData or PolyData to plot (required). 
xlim 
range of Xcoordinates. 
ylim 
range of Ycoordinates. 
projection 
desired projection when PolySet lacks a

plt 
four element numeric vector 
polyProps 
PolyData specifying which points to plot and their
properties. 
cex 
vector describing character expansion factors (cycled by

col 
vector describing colours (cycled by 
pch 
vector describing plotting characters (cycled by 
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 twoelement vector, the first element describes the tick marks on the xaxis and the second element describes those on the yaxis. 
... 
additional 
This function clips data
to xlim
and ylim
before
plotting. It only adds PolyData containing X
and
Y
columns.
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 cex
, col
, and
pch
, 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: 20130410
addPoints
,
combineEvents
,
convDP
,
findPolys
,
locateEvents
.
1 2 3 4 5 6 7 8 9 10 11  local(envir=.PBSmapEnv,expr={
oldpar = par(no.readonly=TRUE)
# load the data (if using R)
if (!is.null(version$language) && (version$language=="R"))
data(nepacLL,surveyData,envir=.PBSmapEnv)
# plot a map
plotMap(nepacLL, xlim=c(136, 125), ylim=c(48, 57))
# add events
addPoints(surveyData, col=1:7)
par(oldpar)
})

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