## S3 method for class 'drifter':
plot(x, which = 1, level, coastline,
                          cex=1, pch=1, type='p',
                          adorn=NULL,
                          mgp=getOption("oceMgp"),
                          mar=c(mgp[1]+1,mgp[1]+1,mgp[1]+1,mgp[1]+1),
                          debug=getOption("oceDebug"), ...)drifter object, e.g. as read by read.drifter.which=1orwhich="trajectory"gives a 
          plot of the drifter trajectory, with the coastline, if one is provided.which=2gives a time series of salinity at the inwhich=2 and higher.  May be an
      integer, in which case it refers to an index of depth (1 being the top)
      or it may be the string "all" which means to plot all data.which=1.type='p'.type='p'."l" or "p".par(mgp), and
    also for par(mar), computed from this.  The default is
    tighter than the R default, in order to use more space for the data
    and less for the axes.par("mar").summary.drifter summarizes the information, while
  read.drifter scans it from a file.library(oce)
d <- read.drifter("/data/OAR/6900388_prof.nc")
data(coastlineWorld)
plot(d, which="trajectory", coastline=coastlineWorld)Run the code above in your browser using DataLab