Skip to content

EmilHvitfeldt/unitscales

Repository files navigation

unitscales

Travis build status Codecov test coverage

The goal of unitscales is to add commonly used scale transformation to ggplot2.

Installation

The development version is available from GitHub with:

# install.packages("devtools")
devtools::install_github("EmilHvitfeldt/unitscales")

Example

This is a basic example which shows you how to solve a common problem:

library(ggplot2)
#> Registered S3 methods overwritten by 'ggplot2':
#>   method         from 
#>   [.quosures     rlang
#>   c.quosures     rlang
#>   print.quosures rlang
library(unitscales)
ggplot(women, aes(weight, height)) +
  geom_point() +
  scale_y_length(base = "inch", system = "imperial", ignore = "yard") +
  scale_x_mass(base = "pound", system = "imperial")

q

About

Adding additional ggplot2 scales that adds units

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages