Creates a transformation that applies -log10(x) to data, useful for visualizing p-values or other values where smaller values should be displayed larger.

log10_reverse_trans()

Value

A transformation object that can be used with ggplot2's scale functions

Examples

if (FALSE) { # \dontrun{
library(ggplot2)
# Example usage with p-values
ggplot(data, aes(x = pvalue)) +
  geom_histogram() +
  scale_x_continuous(trans = log10_reverse_trans())
} # }