diff --git a/index.html b/index.html index 08a5af8..d2d5fb9 100644 --- a/index.html +++ b/index.html @@ -100,7 +100,7 @@
+team_names <- soccerplotR::valid_team_names("ENG") + +df <- data.frame( + team_name = team_names, + value = 1:length(team_names) +) + +df$team_name <- factor(df$team_name, levels = df$team_name[order(df$value)]) + +ggplot(df, aes(y = team_name, x = value)) + + geom_col(aes(color = team_name, fill = team_name), width = 0.8) + + scale_color_soccer(type = "secondary") + + scale_fill_soccer(alpha = 0.8) + + theme_minimal() + + theme( + plot.title.position = "plot", + plot.title = element_text(family = FONT, size = 18), + axis.text = element_text(family = FONT), + panel.grid.major.y = element_blank() + ) + + labs( + x = NULL, + y = NULL, + title = "English teams in {soccerplotR}" + )
team_names <- soccerplotR::valid_team_names("ENG") + +df <- data.frame( + team_name = team_names, + value = 1:length(team_names) +) + +df$team_name <- factor(df$team_name, levels = df$team_name[order(df$value)]) + +ggplot(df, aes(y = team_name, x = value)) + + geom_col(aes(color = team_name, fill = team_name), width = 0.8) + + scale_color_soccer(type = "secondary") + + scale_fill_soccer(alpha = 0.8) + + theme_minimal() + + theme( + plot.title.position = "plot", + plot.title = element_text(family = FONT, size = 18), + axis.text = element_text(family = FONT), + panel.grid.major.y = element_blank() + ) + + labs( + x = NULL, + y = NULL, + title = "English teams in {soccerplotR}" + )