log.scale.fun: Generate Log-base 10 sequence of values to be used in...

View source: R/log.scale.fun.R

log.scale.funR Documentation

Generate Log-base 10 sequence of values to be used in conjunction with axis_fun when plotting log data

Description

Generate Log-base 10 sequence of values to be used in conjunction with axis_fun when plotting log data

Usage

## S3 method for class 'scale.fun'
log(val, type)

Arguments

val

range of values

type

major or minor

Value

a function that provides major and minor ticks with labels on a log scale

Note

see axis() and axis_fun() function

Examples

## Not run: 
# set.seed(36)
# x.val=exp(rlnorm(100))
# y.val=exp(rlnorm(100))

# xlim.val=c(1,100)
# ylim.val=c(1,5000)
# plot(y.val~x.val,ylim=ylim.val,xlim=xlim.val,log="xy",yaxt="n",xaxt="n")
# axis_fun(1,log.scale.fun(xlim.val,"major"),log.scale.fun(xlim.val,"minor"),log.scale.fun(xlim.val,"major"))
# axis_fun(2,log.scale.fun(ylim.val,"major"),log.scale.fun(ylim.val,"minor"),log.scale.fun(ylim.val,"major"))

## End(Not run)

SwampThingPaul/AnalystHelper documentation built on May 15, 2024, 1:32 p.m.