plot_histograms: Plot Histograms

Description Usage Arguments Value Examples

View source: R/plot_histograms.R

Description

Detect outliers in the given list. Plots histogram given numeric features of the input dfframe, and plots bar charts for categorical features of the input dfframe

Usage

1
plot_histograms(df, features, facet_columns = 2)

Arguments

df

dfFrame that to be used for the plot

features

List of string feature names

facet_columns

Number of columns in Integer type for facet options

Value

ggplot object consists of categorical and numeric histograms.

Examples

1
2
3
library(palmerpenguins)
df <- penguins
plot_histograms(df, c("species", "flipper_length_mm", "bill_length_mm", "body_mass_g", "island"), 3)

UBC-MDS/snapedautilityR documentation built on Feb. 5, 2022, 10:35 p.m.