Question: I have created a barplot with a data named ( data _ 3 ) . Title of the barplott is Car Type vs Levels of

I have created a barplot with a data named (data_3). Title of the barplott is "Car Type vs Levels of tires". I want to add legend on the "topleft" using below codes/arguments and I am getting error saying "Error in legend ("topleft", legend = rownames(data_3), fill = c("blue" :
'legend' is of length 0. how can I fix this error?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!