plot.gps {oce} | R Documentation |
Plot a gps object
## S4 method for signature 'gps' plot(x, xlab="", ylab="", asp, clongitude, clatitude, span, projection, parameters=NULL, orientation=NULL, expand=1, mgp=getOption("oceMgp"), mar=c(mgp[1]+1,mgp[1]+1,1,1), bg, axes=TRUE, cex.axis=par('cex.axis'), add=FALSE, inset=FALSE, geographical=0, debug=getOption("oceDebug"), ...)
x |
A |
xlab |
label for x axis |
ylab |
label for y axis |
asp |
Aspect ratio for plot. The default is for |
clongitude,clatitude |
optional center latitude of map, in decimal
degrees. If both |
span |
optional suggested span of plot, in kilometers. The suggestion
is an upper limit on the scale; depending on the aspect ratio of the
plotting device, the radius may be smaller than |
projection |
optional map projection to use (see |
parameters |
optional parameters to map projection (see
|
orientation |
optional orientation of map projection (see
|
expand |
numerical factor for the expansion of plot limits,
showing area outside the plot, e.g. if showing a ship track as a
gps, and then an actual gps to show the ocean boundary.
The value of |
mgp |
3-element numerical vector to use for |
mar |
value to be used with |
bg |
optional colour to be used for the background of the map. This comes in handy for drawing insets (see “details”). |
axes |
boolean, set to |
cex.axis |
value for axis font size factor. |
add |
boolean, set to |
inset |
set to |
geographical |
flag indicating the style of axes. If
|
debug |
set to |
... |
optional arguments passed to plotting functions. For
example, set |
This function plots a gps object. An attempt is made to use the whole space of the plot, and this is done by limiting either the longitude range or the latitude range, as appropriate, by modifying the eastern or northern limit, as appropriate.
To get an inset map inside another map, draw the first map, do
par(new=TRUE)
, and then call plot.gps
with a value of
mar
that moves the inset plot to a desired location on the existing
plot, and with bg="white"
.
None.
Dan Kelley
The documentation for gps-class
explains the structure
of gps objects, and also outlines the other functions dealing with them.
## Not run: library(oce) gps <- read.oce("~/Dropbox/dalwhoi.gpx") plot(gps) lines(coastlineWorld[["longitude"]], coastlineWorld[["latitude"]]) ## End(Not run)