I have plot () which I am trying to do, but I do not want the x values ββto be used as axis labels ... I need another character vector that I want to use as labels in the standard way: use as much as you like , drop the rest, etc. What should I pass to plot () for this to happen?
For example, consider
d <- data.frame(x=1:5,y=10:15,x.names=c('a','b','c','d','e'))
In barplot, I would go through barplot(height=d$y,names.arg=d$x.names) , but in this case the important values ββof x are important. Therefore, I need an analogue, for example, plot(x=d$x,y=d$y,type='l',names.arg=d$x.names) , but this does not work.
r plot
Sep 08 '09 at 18:35 2009-09-08 18:35
source share