histogram_by_factor: Print one histogram for each variable group.

Description Usage Arguments Details Examples

View source: R/lipidome_comparison_visualization.R

Description

'histogram_by_factor' prints a histogram with density line for each group and variable of a data frame

Usage

1
histogram_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

Generate a new grid/pdf dochument for each group of a data frame. Generate one plot for each variable of this subset data frame.

Examples

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

## End(Not run)

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