correlation_plot: Correlation plots

Description Usage Arguments Details Examples

View source: R/lipidome_comparison_visualization.R

Description

'correlation_plot' calculates correlations of variables and displays them in a dotplot

Usage

1
correlation_plot(input_df, method = "spearman", out_path = "none")

Arguments

input_df

data frame.

method

string. Method for calculating the correlation. Options: "pearson", "kendall", "spearman" (default).

out_path

optional string. Path to save correlation plot to png. If out_path is empty the correlation plot is printed to the device.

Details

A grid of dotplots displaying the correlations between the variables of a data frame is generated. Use with less than 10 variables ideally.

Examples

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

## End(Not run)

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