plot function doubt
Title
Question
plot(captaincy$name,captaincy$played)
and
plot(captaincy$year,ratio)
these are not executing
R Introduction-to-Data-Frames-in-R 06-07 min 0-10 sec
Answers:
plot(captaincy$year, ratio): ratio is a column in the captaincy data frame. So, you need to call plot(captaincy$year, captaincy$ratio).
plot(captaincy$name,captaincy$played): Please make sure that the data frame has been loaded in your current working directory.
Login to add comment