JG.

Plotting Time Series Data With GGPlot

In this week's assignment we were tasked with creating a time series visual using ggplot in R Studio.

Screenshot 2024-03-25 at 1.02.43 AM.png

I use data from my collection of Zed Run races. I find the last 20 races for my horse Neigh Girl Neigh at the distance of 2400 meters. I then plot the data in R studio using ggplot. I set the colors to be green for a finish position of 1st to 3rd, 4th to 6th to be blue and 7th or lower to be red.

Screenshot 2024-03-25 at 1.02.03 AM.png


In creating this visual, i learned a bit. With ggplot it was best to add the position color into my dataframe to easily give each plot the color I wanted. Unfortunately I have not been playing the game much recently so the data was a little bit spread out. I was hoping that the plots would kind of weave back and forth through out the month to show that over time the race finishes have averaged out to be a certain value to try and help find a pattern in determining race results. Eventually that is where I would like to go with this data. Be able to predict if a horse will be a money making horse or a horse to farm xp. How ever for the task of practicing plotting data with ggplot this data was fine.