auto.axis {BoutrosLab.plotting.general}R Documentation

Create ideal labels and values for a given dataset (detects log scales)

Description

Takes a dataset and several parameters and outputs an object with values and labels ideal for that dataset

Usage

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
)

Arguments

x

The dataset that is intended to be used for the labels and redisdributed data

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

Author(s)

Takafumi Yamaguch

See Also

stripplot, lattice or the Lattice book for an overview of the package.

Examples

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)

[Package BoutrosLab.plotting.general version 6.0.3 Index]