knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", fig.width = 4, fig.height = 3, dpi = 400 )
pretty provides a drop-in replacement to plot()
, hist()
, boxplot()
and other plotting functions for prettier default parameters and easier customization.
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("OlivierBinette/pretty")
pretty::plot(cars)
pretty::hist(rnorm(1000))
with(ChickWeight, pretty::boxplot(weight ~ Time) )
m = colMeans(cars) pretty::plot(cars, xmark=m[1], ymark=m[2]) pretty::axelines(m[1], m[2], col=3)
df = mtcars[, c("mpg", "disp", "hp", "wt")] pretty::correlation(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.