
Habitat composition chart (natural / altered / water / other) for EOO and AOO
Source:R/plotting.R
plot_conversion.RdDraws, for one species, two horizontal stacked bars (EOO and AOO) showing the MapBiomas composition as a percentage of the mapped (observed) area: natural, altered (anthropic), water and other. Segment labels are placed inside each bar and the legend sits below the plot, so nothing overlaps. The headline terrestrial converted percentage is shown as a subtitle.
Usage
plot_conversion(assessment, species = NULL, lang = c("en", "pt"))Value
A ggplot object (ggplot2 available) or, in the base-graphics
fallback, invisibly the plotted percentage matrix.
Details
When ggplot2 is available (a hard dependency) the function returns a
ggplot object, which mas_plotly can turn into an
interactive chart; otherwise it draws a base-graphics fallback and returns
the percentage matrix invisibly.
See also
mas_plotly for the interactive version.