plot_correlation can plot correlation using a correlation table.

1 2 |

`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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.