Description Usage Arguments Details Value Examples
plot_sdg
creates a (stacked) barplot of the frequency distribution of SDGs identified via detect_sdg.
1 2 3 4 5 6 7 8 9 10 |
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.
1 2 3 4 5 6 7 8 | # run sdg detection
hits <- detect_sdg(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.