Skip to contents

Create a bar plot showing exposure to a sector

Usage

plot_exposures_survey(data)

Arguments

data

A data frame. In principle, an output of prep_exposures_survey(). Requirements:

  • Must have columns: asset_class, entity, sector, exposure_perc_aum.

  • asset_class must have a single value.

  • entity must be one of: "portfolio", "peers".

  • sector must be one of PACTA sectors. Run names(r2dii.colours::colour_aliases_pacta) for the list of values.

  • exposure_perc_aum must be a percentage in decimal format, with values between 0 and 1.

Value

an object of class "ggplot".

Examples

data <- toy_data_exposures_survey %>%
  dplyr::filter(asset_class == "equity", technology == "coal")

plot_exposures_survey(data)
#> Warning: Using alpha for a discrete variable is not advised.