Description Usage Arguments Details Functions See Also Examples
FUNCTION_DESCRIPTION
1 2 3 | scale_x_power(power = 1/2, ...)
scale_y_power(power = 1/2, ...)
|
power |
A value with |
... |
Other parameters passed to |
DETAILS
scale_x_power: same for y-axis.
scale_y_power: same for y-axis.
scale_continuous
power_trans,semi_scientific_formatting
1 2 3 4 5 6 7 8 9 10 | ## Not run:
if(interactive()){
p <- tibble(a=rgamma(1000, shape = c(.1,3, 16), rate=1)) %>% ggplot(aes(a))+
geom_histogram(bins=50)
p + scale_x_sqrt() # no ticks below 10
p + scale_x_power(1/2) # reasonable ticks (powers of two with human-readable rounding)
p + scale_x_power(1/4) # other powers than .5 are possible
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.