knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of unitscales is to add commonly used scale transformation to ggplot2.
The development version is available from GitHub with:
# install.packages("devtools") devtools::install_github("EmilHvitfeldt/unitscales")
This is a basic example which shows you how to solve a common problem:
library(ggplot2) 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.