Skip to content

R plot problems

1 message · Liaw, Andy

#
Use text(), for which srt will work.  As an example:

plot(rnorm(20), rnorm(20), xaxt="n")
text(-2:2, rep(par("usr")[3], 5), 
     c("negative two", "negative one", "zero", "one", "two"),
     srt=45, xpd=NA, adj=1)

HTH,
Andy