plot_sdg | R Documentation |
plot_sdg
creates a (stacked) barplot of the frequency distribution of SDGs identified via detect_sdg or detect_sdg_systems.
plot_sdg(
hits,
systems = NULL,
sdgs = NULL,
normalize = "none",
color = "unibas",
sdg_titles = FALSE,
remove_duplicates = TRUE,
...
)
hits |
|
systems |
|
sdgs |
|
normalize |
|
color |
|
sdg_titles |
|
remove_duplicates |
|
... |
arguments passed to |
The function is built using ggplot
and can thus be flexibly extended. See examples.
The function returns a ggplot
object that can either be stored in an object or printed to produce the plot.
# run sdg detection
hits <- detect_sdg_systems(projects)
# create barplot
plot_sdg(hits)
# create barplot with facets
plot_sdg(hits) + ggplot2::facet_wrap(~system)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.