Question: VISUALIZING AND ANALYZING NBA DATA myplot
VISUALIZING AND ANALYZING NBA DATA
myplot <- function (data, rows) {
matplot (t(data[rows, ]), type="b", pch=15:18, col=c(1:4, 6))
legend ("bottomleft", inset=0.01, legend=Players[rows], pch=15:18,col=c(1:4,6))
}
#Call the myplot function you created above and plot the first 5
myplot (Salary, 1:10)
If you copy the code above (assuming the NBA data has already been loaded in R Studio) and run it, it'll create graph of the Salaries of all 10 players in the NBA data set.
Use the same myplot function above with different matrices (in the next set of questions) and answer the following questions.Make sure to describe in detail your analysis.
23. What is the correlation betweenFieldGoalAttempts / GamesandPoints / Gamesfor Dwight Howard?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
