xgx_scale_x_log10: log10 scales the x axis with a "pretty" set of breaks

Description Usage Arguments Value Examples

View source: R/xgx_scale_x_log10.R

Description

xgx_scale_x_log10 is similar to scale_x_log10. But it uses what we believe to be a nicer spacing and set of tick marks it can be used the same as scale_x_log10

Usage

1
2
3
4
5
6

Arguments

breaks

major breaks, default is a function defined here

minor_breaks

minor breaks, default is a function defined here

labels

function for setting the labels, defined here

...

other arguments passed to scale_x_log10

Value

ggplot2 compatible scale object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 
conc <- 10^(seq(-3, 3, by = 0.1))
ec50 <- 1
data <- data.frame(concentration  = conc,
                   bound_receptor = 1 * conc / (conc + ec50))
ggplot2::ggplot(data, ggplot2::aes(x = concentration, y = bound_receptor)) + 
ggplot2::geom_point() + 
  ggplot2::geom_line() + 
  xgx_scale_x_log10() +
  xgx_scale_y_reverselog10()
  

Example output



xgxr documentation built on April 23, 2021, 1:07 a.m.