/ggoutlier

R package for outlier plots

Primary LanguageROtherNOASSERTION

ggoutlier

Build Status

A package with wrapper functions that deal with outliers, making the regular range interpretable without abandoning the outliers.

Installation

Currently this package is only available from this repo, install with:

# install.packages("devtools")
devtools::install_github("EdwinTh/ggoutlier")

Example

The package contains a single function: ggoutlier_hist. More may be added in the future.

library(ggoutlier)
library(ggplot2)
set.seed(1235)
x <- data.frame(some_var = c(rnorm(100), runif(10, -100, 100)))
ggplot(x, aes(some_var)) + geom_histogram()

ggoutlier_hist(x, "some_var", -5, 5)