Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

create rotated axis labels

The R FAQ states:

   1  
   2  par(mar = c(7, 4, 4, 2) + 0.1)
   3  plot(1 : 30, xaxt = "n",  xlab = "")
   4  labels <- paste("Label", 1:30, sep = " ")
   5  text(1:30, par("usr")[3] - 0.25, srt = 90, adj = 1,labels = labels, xpd = TRUE)
   6  mtext(1, text = "X Axis Label", line = 6)


Also see Figure 1 and associated code in Paul Murrell (2003), “Integrating grid Graphics Output with Base Graphics Output�, R News, 3/2, 7–12.
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS