08.04.2015 Views

The sfsmisc Package - NexTag Supports Open Source Initiatives

The sfsmisc Package - NexTag Supports Open Source Initiatives

The sfsmisc Package - NexTag Supports Open Source Initiatives

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.

24 eaxis<br />

## Inverse of digitsBase() : as.integer method for the "basedInt" class<br />

as.integer(M)<br />

## or also as.intBase() working from strings:<br />

(cb "000" "001" ..... "200" "201"<br />

all(0:33 == as.intBase(cb, base = 4))<br />

eaxis<br />

Extended / Engineering Axis for Graphics<br />

Description<br />

An extended axis() function which labels more prettily, in particular for log-scale axes.<br />

It makes use of plotmath expressions of the form k × 10 k for labeling a log-scaled axis and<br />

when otherwise exponentional formatting would be used.<br />

Usage<br />

eaxis(side, at = axTicks(side, log=log), labels = NULL, log = NULL,<br />

f.smalltcl = 3/5, at.small = NULL, small.mult = NULL,<br />

outer.at = TRUE, drop.1 = TRUE)<br />

Arguments<br />

side<br />

at<br />

labels<br />

log<br />

f.smalltcl<br />

at.small<br />

small.mult<br />

outer.at<br />

drop.1<br />

integer in 1:4, specifying side of axis.<br />

numeric vector of (“normalsized”) tick locations; by default axTicks(side),<br />

i.e., the same as axis() would use.<br />

NULL (default), logical, character or expression, as in axis(); in<br />

addition, if NA, labels = TRUE is passed to axis(), i.e. pretty10exp<br />

is not used. Use FALSE to suppress any labeling.<br />

logical or NULL specifying if log-scale should be used; the default depends on<br />

the current plot’s axis.<br />

factor specifying the lengths of the small ticks in proportion to the normalsized,<br />

labeled ticks.<br />

locations of small ticks; default uses used as “small ticks”.<br />

which multiples of axTicks() should be used as “small ticks” by default.<br />

logical specifying that at.small should also be constructed outside the at<br />

range, but still inside the corresponding par("usr").<br />

logical specifying if "1 *" should be dropped from labels, passed to pretty10exp().<br />

Author(s)<br />

Martin Maechler

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

Saved successfully!

Ooh no, something went wrong!