plot_biome | R Documentation |
Plot biomes linked to entities/sites, in addition to latitude
and
longitude
, a column with the ID_BIOME
is required. This can
be obtained using the function extract_biome
or its faster
version (for large datasets), parallel_extract_biome
.
plot_biome(
.data,
size = 1,
stroke = 0.1,
legend.key.height = ggplot2::unit(1, "cm"),
legend.key.width = ggplot2::unit(1, "cm"),
legend.position = "bottom",
xlim = c(-180, 180),
ylim = c(-60, 90),
show_plot = TRUE,
tiled_legend = TRUE,
land_borders = rnaturalearth::ne_countries(scale = "small", returnclass = "sf"),
land_borders_colour = "black",
land_borders_size = 0.25,
fill_land = "white",
fill_sea = "#CFE2F3",
...
)
.data |
Data frame with spatial data and biome classification. |
size |
Numeric value for the |
stroke |
Numeric value for the |
legend.key.height |
Height of legend key ( |
legend.key.width |
Width of legend key ( |
legend.position |
the default position of legends ("none", "left", "right", "bottom", "top", "inside") |
xlim , ylim |
Limits for the x and y axes. These limits are specified
in the units of the default CRS. By default, this means projected coordinates
( |
show_plot |
Boolean flag to indicate whether or not the graphic should
be displayed, if |
tiled_legend |
Boolean flag to indicate whether or not the legend should
be shown as tiles, if |
land_borders |
Data frame with polygons to represent land borders
(e.g. continents, countries, counties, etc.).
Default: |
land_borders_colour |
String containing a colour code (HEX value) or
colour name, to be used as colour for the land borders.
Default: |
land_borders_size |
Numeric value of the line size to draw the land
borders. Default: |
fill_land |
String containing a colour code (HEX value) or colour
name, to be used as filling for the countries.
Default: |
fill_sea |
String containing a colour code (HEX value) or colour
name, to be used as filling for the seas
Default: |
... |
Arguments passed on to
|
ggplot
object with the plot.
Other utils biome:
biome_name()
,
extract_biome()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.