Skip to contents

Create a plot showing aggregated score in scorecard

Usage

plot_scores_scorecard(data)

Arguments

data

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

  • Must have columns: asset_class, score.

  • asset_class must be one of: "equity", "bonds.

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

Value

an object of class "ggplot".

Examples

data <- toy_data_scores %>%
  dplyr::filter(
    scope == "portfolio",
    entity == "this_portfolio"
  )
plot_scores_scorecard(data)
#> Coordinate system already present. Adding new coordinate system, which will
#> replace the existing one.
#> Scale for fill is already present.
#> Adding another scale for fill, which will replace the existing scale.
#> Scale for colour is already present.
#> Adding another scale for colour, which will replace the existing scale.