boxplot_by_factor: Print boxplot by factor

Description Usage Arguments Details Examples

View source: R/lipidome_comparison_visualization.R

Description

'boxplot_by_factor' generates plot with one boxplot per group for each variable

Usage

1
boxplot_by_factor(input_df, factor, out_path = "none")

Arguments

input_df

a data frame with at least one factor column

factor

a string with the column name to group by

out_path

optional string.

Details

A plot with one boxplot per group is generated for all variables of a data frame.

Examples

1
2
3
4
5
6
7
boxplot_by_factor(iris, "Species")
## Not run: 
dir.create(paste(getwd(), "/examples", sep = ""), showWarnings = FALSE)
dir <- paste(getwd(), "/examples/iris", sep = "")
boxplot_by_factor(iris, "Species", dir)

## End(Not run)

lisaschneider0509/lipidomeComparisonR documentation built on Aug. 12, 2020, 12:52 a.m.