plot_map | R Documentation |
Create a map of a part of the west coast of North America, including bathymetry raster and contours
plot_map(
crs_ll = 4326,
x_lim = c(-140, -113),
y_lim = c(33, 58),
coast_line_color = "black",
coast_line_thickness = 0.1,
coast_fill = "grey",
show_bathy_contours = TRUE,
show_bathy_raster = TRUE,
bathy_resolution = 1,
bathy_alpha = 0.8,
bathy_contours = c(100, 200, 500, 1000, 1500),
bathy_contour_color = "black",
bathy_contour_thickness = 0.25,
bathy_raster_scale = scale_fill_continuous(type = "gradient")
)
crs_ll |
Coordinate Reference System (CRS) number for a
latitude/longitude-based projection. This could be NAD83 or WGS84 or
others. The default is 4326 which is WGS84: See
Epsg.org for details. Click |
x_lim |
The length-2 vector representing the minimum and maximum limits of the x-axis in degrees of longitude |
y_lim |
The length-2 vector representing the minimum and maximum limits of the y-axis in degrees of latitude |
coast_line_color |
The line color for the coastline |
coast_line_thickness |
The line thickness for the coastline |
coast_fill |
The fill color for the land areas |
show_bathy_contours |
Logical. If |
show_bathy_raster |
Logical. If |
bathy_resolution |
The resolution for the bathymetry in minutes.
See |
bathy_alpha |
The transparency for the bathymetric raster layer |
bathy_contours |
A vector of contours to show contour lines for. These can be either positive or negative; they will all be made negative in the function |
bathy_contour_color |
The line color for the bathymetric contours |
bathy_contour_thickness |
The line thickness for the bathymetric contours |
bathy_raster_scale |
A |
A ggplot2::ggplot()
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.