Description Usage Arguments Value Examples
View source: R/plot_2diicharts.R
Create a small multiples stacked bar chart with percentage investment in PACTA sectors
1 2 3 4 5 6 7 8 | plot_metareport_pacta_sectors_mix(
data,
plot_title = NULL,
df_sectors_order = data.frame(sector = c("steel", "cement", "shipping", "aviation",
"automotive", "power", "coal", "oil&gas"), label = c("Steel", "Cement", "Shipping",
"Aviation", "Automotive", "Power", "Coal", "Oil & Gas")),
bars_labels_specs = NULL
)
|
data |
Dataframe with data processed for the chart. With columns: investor_name, asset_type, sector, share (dataframe). |
plot_title |
Title of the plot; if no title is specified, the plot title is set in the code to a predetermined character string (character string). |
df_sectors_order |
Dataframe with ordered sector names and their labels (dataframe). |
bars_labels_specs |
Dataframe with labels for investor types, columns: investor_type, label. If no is specified, investor_type from data is used as label. (dataframe). |
An object of class "ggplot".
1 | # TODO
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.