visualize_outliers: A function that plot out the given data with outliers marked.

Description Usage Arguments Value Examples

View source: R/visualize_outliers.R

Description

A function that plot out the given data with outliers marked.

Usage

1
visualize_outliers(dataframe, columns = NULL, type = "violin")

Arguments

dataframe

A target dataframe where the function is performed.

columns

The target columns where the function needed to be performed. Default is None, the function will check all columns.

type

The method of plotting the distribution.

Value

A ggplot of data distribution.

Examples

1
2
3
4
5
library(tidyverse)
library(ggplot2)

df <- tibble(cola=c(1:5), colb=c(6:10), colc=c(11:15))
visualize_outliers(df, columns=c("cola", "colb"), type="violin")

UBC-MDS/r_outliers_utils documentation built on Feb. 7, 2022, 9:12 a.m.