My command to create a scatter plot in R did not work If you simply remove the part of your code that says labels=row.names(iris) your code will work. I am not quite sure what you wanted to accomplish with the labels part, but this will get you started. I am not quite sure what you wanted to accomplish with the labels part, but this will get you started.