README.md

pretty: Prettier base plots in R

Lifecycle:
experimental

pretty provides a drop-in replacement to plot(), hist(), boxplot() and other plotting functions for prettier default parameters and easier customization.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("OlivierBinette/pretty")

Example

Scatter plots

pretty::plot(cars)

Histograms

pretty::hist(rnorm(1000))

Boxplots

with(ChickWeight,
     pretty::boxplot(weight ~ Time)
)

Labelling axes

m = colMeans(cars)
pretty::plot(cars, xmark=m[1], ymark=m[2])
pretty::axelines(m[1], m[2], col=3)

Correlation matrices

df = mtcars[, c("mpg", "disp", "hp", "wt")]
pretty::correlation(df)



OlivierBinette/pretty documentation built on Jan. 17, 2021, 12:13 a.m.