log10_reverse_trans: log10_reverse_trans

Description Usage Details Value Examples

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

1

Details

\lifecycle

maturing

Value

A scales object

Examples

1
2
3
4
5
6
7
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")

tidybulk documentation built on April 7, 2021, 6 p.m.