View source: R/log.scale.fun.R
log.scale.fun | R Documentation |
Generate Log-base 10 sequence of values to be used in conjunction with axis_fun when plotting log data
## S3 method for class 'scale.fun'
log(val, type)
val |
range of values |
type |
major or minor |
a function that provides major and minor ticks with labels on a log scale
see axis() and axis_fun() function
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.