ggpmisc (version 0.3.2)

FC_format: Formatter for fold change tick labels

Description

Generate tick labels discounting a log transformation in data, and optionally applying a different log transformation or no transformation.

Usage

FC_format(log.base.data = 2, log.base.labels = 10, digits = 3, ...)

FC_plain(x, log.base.data = 2, log.base.labels = 10, digits = 3, ...)

Arguments

log.base.data

of data.

log.base.labels

of labels.

digits

number of significant digits to show.

...

other arguments passed on to format.

x

a numeric vector to format.

Value

a function with single parameter x, a numeric vector, that returns a character vector.

See Also

Other Functions for quadrant and volcano plots: geom_quadrant_lines, outcome2factor, scale_colour_outcome, scale_shape_outcome, scale_y_Pvalue, stat_quadrant_counts, xy_outcomes2factor

Examples

Run this code
# NOT RUN {
FC_format(2, 10)(1:10)
FC_format(2, FALSE)(c(1/4, 1/2, 1,2,4,8))
FC_format(10, FALSE)(c(1, 10, 100, 1000))
FC_format(FALSE, 10)(c(-1, 1, 2, 3))

# }

Run the code above in your browser using DataLab