Last chance! 50% off unlimited learning
Sale ends in
## S3 method for class 'coastline':
subset(x, subset, \dots)
coastline
object.data
portion of
x
. See coastline
object.subset.data.frame
. Points on the coastline that are outside
the subset region are set to NA
. If the results are to be plotted
with plot.coastline
, it will be necessary to set the argument
fill=NULL
to avoid filling land areas.library(oce)
data(coastlineWorld)
plot(coastlineWorld)
a <- subset(coastlineWorld, longitude < 0)
points(a[['longitude']], a[['latitude']], col='red', pch=20, cex=1/2)
Run the code above in your browser using DataLab