Hi, I am a beginner who just started learning RStudio.
I am trying to plot my GPS marketshare data set using the command plot(gps$marketshare, gps$company) and I get the error message as shown in my screenshot:
However, this command works when using the default Iris data plot(iris$petal.length, iris$species)
I suspect this is because the data is of different types as typeof(company) outputs character while typeof(species) outputs integer.
May I know how to plot the data from my excel sheet and why is the imported data so different from the iris data.
Apologies if this is the wrong place to post this sort of questions and I would really appreciate any assistance!