if (FALSE) {
# Download data on some players
EllysePerry <- fetch_player_data(275487, "T20", "batting")
RahulDravid <- fetch_player_data(28114, "ODI", "fielding")
LasithMalinga <- fetch_player_data(49758, "Test", "bowling")
# Create a plot for Ellyse Perry's T20 scores
library(dplyr)
library(ggplot2)
EllysePerry |>
filter(!is.na(Runs)) |>
ggplot(aes(x = Start_Date, y = Runs, col = Dismissal, na.rm = TRUE)) +
geom_point() +
ggtitle("Ellyse Perry's T20 Scores")
}
Run the code above in your browser using DataLab