boxplot_by_categories: boxplot_by_categories

Description Usage Arguments Value Examples

View source: R/boxplot_by_categories.R

Description

This is a wrapper for a ggplot2 boxplot for a variable with different groups, and also adds the labels for outliers, if any.

Usage

1
boxplot_by_categories(df, quantitative, categorical, id = NULL)

Arguments

df

A data frame.

quantitative

The quoted name of the column with the quantitative variable.

categorical

The quoted name of the column with the categorical variable, i.e. the variables that divides the data in groups.

id

The quoted name name of the column with the individual variables, i.e. the observations. It is set as default to NULL for the cases where there is no column identifying the indioviduals in the data set.

Value

Boxplot of the quantitative variable for each group in the categorical variable. And also idintify the outlier, when they exist is the data.

Examples

1
boxplot_by_categories(df=data, quantitative="pressure", categorical="blood_type",id="patient_name")

vinisousa04/AdvancedDataAnalysis documentation built on Sept. 18, 2017, 3:23 a.m.