Skip to content

Better baser plots in R.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

OlivierBinette/pretty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Better baser plots in R.

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