Skip to contents

Create a plot showing aggregated scores for portfolio and peers

Usage

plot_scores(data)

Arguments

data

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

  • Must have columns: asset_class,scope,entity, sector, score.

  • asset_class must have a single value.

  • scope must be one of: "portfolio", "sector".

  • entity must have following values: "this_portfolio", "peers".

  • sector must be one of: "power", "automotive", "coal", "oil", "gas", "steel", "aviation" or NA in case of scope == "portfolio".

  • score must be one of: "A+", "A", "B", "C", "D", "E".

Value

an object of class "ggplot".

Examples

library(dplyr)

plot_scores(toy_data_scores %>% filter(asset_class == "equity"))