Description Usage Arguments Value See Also
This function creates a simple basemap on which to plot data. The plot consists of a (filled) coastline, with a labelled
lat-lon grid. When a dataframe is provided, the extents of the plot will automatically match the extent of the supplied data (with a 15 percent buffer around the edges).
Additionally, the output projection of the plot can be specified (e.g. "+init=epsg:2220"
would result in UTM Zone 20 N, while
"+init=epsg:4326"
would be an unprojected WGS84 plot. Many values are possible and/or appropriate for the value of crs.out
,
depending on the data. Check CRS-class
for more options.
1 2 3 | make_basemap(df = NULL, lat.field = "LATITUDE", lon.field = "LONGITUDE",
crs.out = "+init=epsg:2220", x.limits = c(-70, -54), y.limits = c(41,
50))
|
df |
default is |
lat.field |
default is |
lon.field |
default is |
crs.out |
default is |
x.limits |
default is |
y.limits |
default is |
a SpatialPolygons object corresponding to the bounding box of the plot.
Other plotting: add_points
,
df_qc_spatial
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.