scale_revlog | R Documentation |
Provides a reverse log scale to ggplot; especially useful for p-values
scale_x_revlog(base = exp(1), ...)
scale_y_revlog(base = exp(1), ...)
base |
Base of log; default is natural log |
... |
Additional arguments to scale_x_continuous or scale_x_continuous |
library(ggplot2)
DF <- data.frame(x=1:3, y=c(0.1, 0.01, 0.001))
ggplot(DF, aes(x, y)) + geom_point() + scale_y_revlog(10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.