Description Usage Arguments Details Examples
View source: R/lipidome_comparison_visualization.R
'histogram_by_factor' prints a histogram with density line for each group and variable of a data frame
1 | histogram_by_factor(input_df, factor, out_path = "none")
|
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. |
Generate a new grid/pdf dochument for each group of a data frame. Generate one plot for each variable of this subset data frame.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.