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)