| auto.axis | R Documentation | 
Takes a numeric vector and several parameters and outputs an object with values and labels ideal for given data
auto.axis(
    x,
    pretty = TRUE,
    log.scaled = NA,
    log.zero = 0.1,
    max.factor = 1,
    min.factor = 1,
    include.origin = TRUE,
    num.labels = 5,
    max.min.log10.diff = 2
)
| x | Numeric vector to be scaled | 
| pretty | Parameter flag for if output should be in pretty format | 
| log.scaled | parameter set to determine if scaling is logarithmic or not | 
| log.zero | log 0 starting point | 
| max.factor | maximum factor for y variable | 
| min.factor | minimum factor for y variable | 
| include.origin | flag to include the origin value or not | 
| num.labels | number of labels to output | 
| max.min.log10.diff | the max and min diffrence for dataset to be determined logarithmic | 
Takafumi N. Yamaguchi
stripplot, lattice or the Lattice book for an overview of the package.
set.seed(223);
simple.data <- data.frame(
    x = sample(1:15, 10),
    y = LETTERS[1:10]
    );
auto.axis(simple.data$x)
data2 <- c(1,10,100,1000)
auto.axis(data2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.