uss_plot_seasons_tiers | R Documentation |
Returns a ggplot:
season
on the x-axis
faceted by team
has two layers:
rectangles shaded by tier
points showing wins
on the y-axis
Of the countries included in uss_countries()
, only "england"
has data for
more than one tier
.
uss_plot_seasons_tiers(data_seasons, aes_y = .data$wins, ncol = 1)
data_seasons, |
data frame created using |
aes_y |
expression to show on y-axis. |
ncol, |
|
Object with S3 classes "gg"
, "ggplot"
, i.e. a ggplot2 object.
leeds_norwich <- uss_get_matches("england") |> uss_make_teams_matches() |> dplyr::filter(team %in% c("Leeds United", "Norwich City")) |> dplyr::mutate(tier = as.factor(tier)) |> uss_make_seasons_final() |> dplyr::arrange(team, season) # use default (wins) uss_plot_seasons_tiers(leeds_norwich)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.