semi_scientific_formatting: FUNCTION_TITLE

Description Usage Arguments Details Value See Also Examples

View source: R/hello.R

Description

FUNCTION_DESCRIPTION

Usage

1

Arguments

x

PARAM_DESCRIPTION

Details

DETAILS

Value

OUTPUT_DESCRIPTION

See Also

scientific_format

Examples

 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)

FelixTheStudent/ggpower documentation built on March 5, 2020, 8:37 p.m.