Skip to content

Commit

Permalink
updated charts
Browse files Browse the repository at this point in the history
  • Loading branch information
FlavioLeccese92 committed Mar 2, 2024
1 parent 0c15189 commit f220604
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 6 deletions.
Binary file added man/figures/euroleague-logo-vertical.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added man/figures/fa-brands-400.ttf
Binary file not shown.
Binary file modified man/figures/team-standings-race.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/team-stats-court.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/team-stats-radarchart.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions vignettes/articles/team-standings-race.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ CompetitionStandings <- getCompetitionStandings("E2023", CompetitionRounds$Round
MaxRound <- max(CompetitionStandings$Round)
MaxGameDate <- CompetitionRounds %>% filter(Round == MaxRound) %>% pull(MaxGameStartDate) %>%
format(., '%d %b %Y')
NRounds <- 12
NRounds <- 10
Teams <- getTeam("E2023", unique(CompetitionStandings$TeamCode))
```
Expand All @@ -77,8 +77,8 @@ CompetitionStandings <-
by = "TeamCode") %>%
left_join(CompetitionStandings %>% filter(Round == MaxRound) %>%
arrange(desc(Position)) %>%
mutate(y = factor(glue("**#{Position}** ({GamesWon*2} pts) - {TeamName}"),
levels = glue("**#{Position}** ({GamesWon*2} pts) - {TeamName}"))) %>%
mutate(y = factor(glue("**#{Position}** ({GamesWon*2} pts {GamesPlayed} gp) - {TeamName}"),
levels = glue("**#{Position}** ({GamesWon*2} pts {GamesPlayed} gp) - {TeamName}"))) %>%
select(y, Position),
by = "Position") %>%
filter(Round %in% (MaxRound - NRounds):MaxRound) %>%
Expand Down
5 changes: 3 additions & 2 deletions vignettes/articles/team-stats-court.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,15 @@ showtext_auto()

```{r data}
CompetitionRounds <- getCompetitionRounds("E2023") %>%
filter(MaxGameStartDate <= Sys.Date())
filter(MinGameStartDate <= Sys.Date())
MaxRound <- max(CompetitionRounds$Round)
MaxGameDate <- format(as.Date(max(CompetitionRounds$MaxGameStartDate)),
'%d %b %Y')
CompetitionStandings <- getCompetitionStandings("E2023", MaxRound)
CompetitionGames <- getCompetitionGames("E2023", CompetitionRounds$Round)
CompetitionGames <- getCompetitionGames("E2023", CompetitionRounds$Round) %>%
filter(Status == "result")
GamePoints <- getGamePoints("E2023", CompetitionGames$GameCode)
```

Expand Down
2 changes: 1 addition & 1 deletion vignettes/articles/team-stats-radar.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ showtext_auto()

```{r data}
CompetitionRounds <- getCompetitionRounds("E2023") %>%
filter(MaxGameStartDate <= Sys.Date()) %>%
filter(MinGameStartDate <= Sys.Date()) %>%
slice_head(n = 1)
MaxRound <- max(CompetitionRounds$Round)
Expand Down

0 comments on commit f220604

Please sign in to comment.