saving . . . saved plot(captaincy$named, captaincy$played) has been deleted. plot(captaincy$named, captaincy$played) has been hidden .
plot(captaincy$named, captaincy$played)
While executing plot(captaincy$named, captaincy$played)
I m getting error as 
<span style="color: rgb(85, 85, 85); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">Error in plot.window(...) : need finite 'xlim' valuesIn addition: Warning messages:1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion2: In min(x) : no non-missing arguments to min; returning Inf3: In max(x) : no non-missing arguments to max; returning -Inf</span>

R Introduction-to-Data-Frames-in-R 08-09 min 10-20 sec 04-05-20, 1:20 a.m.


Please note that the plot() function simply plots two vectors against each other. Like plot(c(1:4),c(1,4,9,16)). 
In your case, it seems you wish to draw a barplot. For this, please type the commands as given below:

barplot(captaincy$played, names.arg = captaincy$names)
04-05-20, 5:59 p.m. sudhakarst

Please checkout
08-10-20, 11:22 p.m. DVB

Log-in to answer to this question.