mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
Deploying to gh-pages from @ agdamsbo/FreesearchR@54dd332cd8 🚀
This commit is contained in:
parent
4cf4bd0499
commit
6d545337de
328 changed files with 12930 additions and 1662 deletions
40
reference/limit_log.md
Normal file
40
reference/limit_log.md
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# Easily round log scale limits for nice plots
|
||||
|
||||
Easily round log scale limits for nice plots
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
limit_log(data, fun, ...)
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
- data:
|
||||
|
||||
data
|
||||
|
||||
- fun:
|
||||
|
||||
rounding function (floor/ceiling)
|
||||
|
||||
- ...:
|
||||
|
||||
ignored
|
||||
|
||||
## Value
|
||||
|
||||
numeric vector
|
||||
|
||||
## Examples
|
||||
|
||||
``` r
|
||||
limit_log(-.1, floor)
|
||||
#> [1] 0.7
|
||||
limit_log(.1, ceiling)
|
||||
#> [1] 2
|
||||
limit_log(-2.1, ceiling)
|
||||
#> [1] 0.008
|
||||
limit_log(2.1, ceiling)
|
||||
#> [1] 200
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue