knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  res = 140, 
  fig.path = "man/figures/README-",
  out.width = "50%"
)
library(ratioScales)
library(tidyverse)

ratioScales

R-CMD-check CRAN status

Logarithmic axis scales can clearly communicate multiplicative changes; they can also confuse. ratioScales annotates logarithmic axis scales with tickmarks that denote proportional and multiplicative change simply and explicitly.

The main function in this package, scale_*_ratio(), is ggplot-friendly and works similarly to existingscale_*_* functions from ggplot2 and scales.

For examples and to learn more, please visit https://mikeroswell.github.io/ratioScales/

Installation

You can install the development version of ratioScales from GitHub with:

# install.packages("remotes")
remotes::install_github("mikeroswell/ratioScales")


mikeroswell/ratioScales documentation built on July 18, 2024, 6:36 p.m.