scale_breaks()
works with non-negative dataCode
pos_scales
Output
<list_of<double>[7]>
[[1]]
[1] 0.0e+00 5.0e-06 1.0e-05 1.5e-05 2.0e-05 2.5e-05 3.0e-05
[[2]]
[1] 0.00 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09
[[3]]
[1] 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45
[[4]]
[1] 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1
[[5]]
[1] 0 10 20 30 40 50 60 70 80 90 100
[[6]]
[1] 0 100 200 300 400 500 600 700 800
[[7]]
[1] 700 800 900 1000 1100 1200 1300 1400
scale_breaks()
works with non-positive dataCode
neg_scales
Output
<list_of<double>[7]>
[[1]]
[1] -3.0e-05 -2.5e-05 -2.0e-05 -1.5e-05 -1.0e-05 -5.0e-06 0.0e+00
[[2]]
[1] -0.09 -0.08 -0.07 -0.06 -0.05 -0.04 -0.03 -0.02 -0.01 0.00
[[3]]
[1] -0.45 -0.40 -0.35 -0.30 -0.25 -0.20 -0.15 -0.10 -0.05
[[4]]
[1] -2.1 -2.0 -1.9 -1.8 -1.7 -1.6 -1.5 -1.4 -1.3 -1.2 -1.1 -1.0 -0.9 -0.8 -0.7
[16] -0.6 -0.5 -0.4 -0.3
[[5]]
[1] -100 -90 -80 -70 -60 -50 -40 -30 -20 -10 0
[[6]]
[1] -800 -700 -600 -500 -400 -300 -200 -100 0
[[7]]
[1] -1400 -1300 -1200 -1100 -1000 -900 -800 -700
scale_breaks()
works with mixed dataCode
mixed_scales
Output
<list_of<double>[7]>
[[1]]
[1] 0.0e+00 5.0e-06 1.0e-05 1.5e-05 2.0e-05 2.5e-05 3.0e-05
[[2]]
[1] -0.01 0.00 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09
[[3]]
[1] -0.1 0.0 0.1 0.2 0.3 0.4 0.5
[[4]]
[1] -0.5 0.0 0.5 1.0 1.5 2.0 2.5
[[5]]
[1] -10 0 10 20 30 40 50 60 70 80 90 100
[[6]]
[1] -100 0 100 200 300 400 500 600 700 800
[[7]]
[1] -800 -600 -400 -200 0 200 400 600 800 1000 1200 1400
scale_breaks()
errors when given invalid min/max`range` must be:
* scalar (length 1)
* numeric (integer or double)
* non-empty (not `NULL` or length 0)
x positive (not 0, negative, or missing)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.