Description Usage Arguments Details Value See Also Examples
FUNCTION_DESCRIPTION
1 |
x |
PARAM_DESCRIPTION |
DETAILS
OUTPUT_DESCRIPTION
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
if(interactive()){
# without, with mild and with strong transformation:
ggplot(data=tibble(x=rgamma(1000, c(.5, 5, 50))), aes(x))+geom_histogram(bins=50)
ggplot(data=tibble(x=rgamma(1000, c(.5, 5, 50))), aes(x))+geom_histogram(bins=50) + scale_x_continuous(trans=power_trans(1/2))
ggplot(data=tibble(x=rgamma(1000, c(.5, 5, 50))), aes(x))+geom_histogram(bins=50) + scale_x_continuous(trans=power_trans(1/10))
# last plot, but with nicer x-axis labels:
ggplot(data=tibble(x=rgamma(1000, c(.5, 5, 50))), aes(x))+geom_histogram(bins=50) + scale_x_continuous(trans=power_trans(1/2), labels = semi_scientific_formatting)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.