R/xgx_scale_y_log10.R
xgx_scale_y_log10.Rd
xgx_scale_y_log10
is similar to
scale_y_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_y_log10
xgx_scale_y_log10(
breaks = xgx_breaks_log10,
minor_breaks = NULL,
labels = xgx_labels_log10,
...
)
major breaks, default is a function defined here
minor breaks, default is a function defined here
function for setting the labels, defined here
other arguments passed to
scale_y_log10
ggplot2 compatible scale object
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(y = concentration, x = bound_receptor)) +
ggplot2::geom_point() +
ggplot2::geom_line() +
xgx_scale_y_log10() +
xgx_scale_x_reverselog10()