View source: R/plot-spatial-cpue.R
| plot_spatial_cpue | R Documentation | 
Create a map of the west coast of North America showing places of interest
plot_spatial_cpue(
  d,
  crs_ll = 4326,
  crs_utm = 32609,
  x_lim = c(-131.25, -124.5),
  y_lim = c(48, 52.5),
  bin_width = 7,
  n_minimum_vessels = 3,
  hex_alpha = 0.5,
  hex_border_color = "black",
  hex_border_thickness = 0.25,
  hex_fill_breaks = c(0, 1000, seq(3000, 14000, 3000)),
  hex_fill_labels = comma(hex_fill_breaks),
  hex_colors = c("antiquewhite", "yellow", "orange", "red"),
  ...
)
| d | Data from  | 
| 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  | 
| crs_utm | Coordinate Reference System (CRS) number for a
Easting/Northing-based projection. This could be UTM9 or UTM10 or
others. There is a different number for each UTM zone. The default is
32609 which is UTM zone 9 (west coast Canada). 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 | 
| bin_width | Bin width as defined in  | 
| n_minimum_vessels | The minimum number of vessels that must be present in a hexagon for the hexagon to be shown | 
| hex_alpha | The transparency value of the CPUE hexagons | 
| hex_border_color | The color of the hexagon border lines | 
| hex_border_thickness | The thickness of the hexagon border lines | 
| hex_fill_breaks | The breaks to show in the color bar that describes
the colors of the hexagons. Must be the same length as  | 
| hex_fill_labels | The labels to show in the color bar that describes | 
| hex_colors | A vector of colors to use to make a color ramp palette for the hexagons | 
| ... | the colors of the hexagons. Must be the same length as  | 
A ggplot2::ggplot() object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.