log10_reverse_trans | R Documentation |
it perform log scaling and reverse the axis. Useful to plot negative log probabilities. To not be used directly but with ggplot (e.g. scale_y_continuous(trans = "log10_reverse") )
log10_reverse_trans()
'r lifecycle::badge("maturing")'
A scales object
library(ggplot2)
library(tibble)
tibble(pvalue = c(0.001, 0.05, 0.1), fold_change = 1:3) %>%
ggplot(aes(fold_change , pvalue)) +
geom_point() +
scale_y_continuous(trans = "log10_reverse")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.