Description Usage Arguments Value Examples
View source: R/correlation_functions.R
This function plots a scatterplot of a feature and a phenotype along with sample correlation statistics.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
aggdat |
aggregated MRExperiment |
feature |
Feature input. |
phenotype |
Phenotype input (must be numeric) |
log |
Log2 transform data. Default is TRUE. |
method |
Correlation coefficient. One of "spearman" (default), "pearson", or "kendall". |
addRegression |
boolean parameter indicating whether linear regression line should be drawn; default: TRUE |
col_by |
Phenotype for coloring. |
facet1 |
Phenotype for facet 1. |
facet2 |
Phenotype for facet 2. (WIP/TODO) |
plotTitle |
Plot title. Default is no title. |
xlab |
X-axis label. Default is |
ylab |
Y-axis label. Default is |
allowWebGL |
boolean indicating if WebGL should be used for large data |
pwidth |
overall plot width; default is 550 |
pheight |
overall plot height; default is 200 |
list holding plotly plot and lm fit
1 2 3 | data("mouseData", package = "metagenomeSeq")
aggdat <- aggFeatures(mouseData, level = "genus")
corrPhenotype(aggdat, feature = "Bacteroides", phenotype = "relativeTime")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.