plot_correlation: plot_correlation

Description Usage Arguments

Description

plot_correlation can plot correlation using a correlation table.

Usage

1
2
plot_correlation(cor_tab, x = NA, y = NA, method = "pearson",
  heatmap = FALSE, row_order = NULL, col_order = NULL, font_size = 12)

Arguments

cor_tab

A data frame that contains at least two columns to calculate correlation.

x

Colname of cor_tab. If x's length is more than 1, plot_correlation will calculate correlation respectively and facet the plot by x.

y

Colname of cor_tab.

method

A character string indicating which correlation coefficient is to be used. One of c("pearson", "kendall", or "spearman"), default is "pearson".

heatmap

Dafault FASLE. If TRUE, will generate a correlation heatmap with input table. Doesn't require x or y.

row_order

Default NULL. Input a vector of ordered rownames if need to adjust row order for heatmap. Manually setting row order will turn off clustering.

font_size

Default 12. Font size of the number in heatmap.

col_roder

Default NULL. Input a vector of ordered colnames if need to adjust column order for heatmap. Manually setting column order will turn off clustering.


yeguanhuav/visual16S documentation built on Aug. 11, 2019, 8:51 a.m.