Skip to contents

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

Usage

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


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")