log10_reverse_trans: log10_reverse_trans

View source: R/ggplot.R

log10_reverse_transR Documentation

log10_reverse_trans

Description

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") )

Usage

log10_reverse_trans()

Details

'r lifecycle::badge("maturing")'

Value

A scales object

Examples


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")


stemangiola/tidyBulk documentation built on Nov. 21, 2024, 8:14 a.m.