logit_trans: logit scale

View source: R/ggplot.R

logit_transR Documentation

logit scale

Description

it perform logit scaling with right axis formatting. To not be used directly but with ggplot (e.g. scale_y_continuous(trans = "log10_reverse") )

Usage

logit_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 April 9, 2024, 4:16 a.m.