Description Usage Arguments Details Examples
View source: R/lipidome_comparison_visualization.R
'correlation_plot' calculates correlations of variables and displays them in a dotplot
1 | correlation_plot(input_df, method = "spearman", out_path = "none")
|
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. |
A grid of dotplots displaying the correlations between the variables of a data frame is generated. Use with less than 10 variables ideally.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.