05.12.2012 Views

What documentation exists for R?

What documentation exists for R?

What documentation exists for R?

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 7: R Miscellanea 87<br />

To see the code <strong>for</strong> an unexported function foo() in the namespace of package "bar"<br />

use bar:::foo. Don’t use these constructions to call unexported functions in your own<br />

code—they are probably unexported <strong>for</strong> a reason and may change without warning.<br />

7.27 How can I create rotated axis labels?<br />

To rotate axis labels (using base graphics), you need to use text(), rather than mtext(),<br />

as the latter does not support par("srt").<br />

## Increase bottom margin to make room <strong>for</strong> rotated labels<br />

par(mar = c(7, 4, 4, 2) + 0.1)<br />

## Create plot with no x axis and no x axis label<br />

plot(1 : 8, xaxt = "n", xlab = "")<br />

## Set up x axis with tick marks alone<br />

axis(1, labels = FALSE)<br />

## Create some text labels<br />

labels

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!