Friday, January 21, 2011

R Plot with Text labels

> h<-data.frame(sample(5),runif(5)) > plot(h, type='n')
> text(h[,1], h[,2])

Plot xticks

> plot(h, xaxt='n')
> axis(1, at=c(1:5), label=letters[1:5])

No comments: