Error in R command to graph.