At the risk of pissing more people off…
I found the scatter plot assignment a bit odd. It wasn’t a very good use of a scatter plot. The purpose of a scatter plot is to show the relationship between two variables. But for the data set given there is no doubt of the relationship between how fast they did that part of the race and what their rank was compared to others that did that part of the race. It is a simple ordinal relationship – the person with the lowest time will always be first, the person with the second lowest time would always be second, etc. Really, the scatter plot in the original is just a sorted horizontal bar chart without the bars.
Again, this isn’t a dig on the coding. Just as someone that used to do statistical work, this struck me as odd – using the wrong tool for the job. I’d rather see something like performance vs. age or performance vs. weight or by rank vs. hours trained or time vs. year of the race, etc. I’d want to see something where the relationship isn’t already clear by definition. That’s what scatter plots are for.
It just struck me as odd. I guess it doesn’t matter from a coding standpoint. I didn’t have the energy to dig up a data set with race times that could be put into a meaningful scatter plot, but I probably will before I put that into a portfolio.
Just a thought.