[R] how to plot an array with labels

Mayeul KAUFFMANN mayeul.kauffmann at tiscali.fr
Fri Aug 13 13:00:56 CEST 2004


>How can i plot an array and instead of having on the x labels the 
>indexes of the array I want to display an other String array of the 
>same length

Do this:
> plot(myarray,xaxt="n",xlab="")
> axis(1,at=1:length(myarray),lab=my.vector.of.names)




More information about the R-help mailing list