Skip to contents

Given a table containing data, it create boxplots for each desired variable.

Usage

getBoxplots(df, v, f)

Arguments

df

dataframe. Containing data to plot.

v

character. The names of the columns of df containing numerical data to plot

f

character of length 1. The names of the factor variable used to group the boxplots.

Value

A ggplot object (if v is only 1), or a list of ggplots (if v contains 2 or more elements).