Learn R Programming

xgxr (version 1.1.2)

xgx_minor_breaks_log10: Sets the default minor_breaks for log10 scales

Description

xgx_minor_breaks_log10 sets nice minor_breaks for log10 scale.

Usage

xgx_minor_breaks_log10(data_range)

Value

numeric vector of breaks

Arguments

data_range

range of the data

Examples

Run this code
xgx_minor_breaks_log10(c(1, 1000))
xgx_minor_breaks_log10(c(0.001, 100))
xgx_minor_breaks_log10(c(1e-4, 1e4))
xgx_minor_breaks_log10(c(1e-9, 1e9))
xgx_minor_breaks_log10(c(1, 2))
xgx_minor_breaks_log10(c(1, 5))
xgx_minor_breaks_log10(c(1, 10))
xgx_minor_breaks_log10(c(1, 100))
xgx_minor_breaks_log10(c(1, 1.01))
xgx_minor_breaks_log10(c(1, 1.0001))
print(xgx_minor_breaks_log10(c(1, 1.000001)), digits = 10)

Run the code above in your browser using DataLab