plotCorrelation | R Documentation |
Correlation X-Y scatterplot
plotCorrelation(object, ...)
## S4 method for signature 'DFrame'
plotCorrelation(object, labelCol = NULL, ...)
## S4 method for signature 'Matrix'
plotCorrelation(
object,
xCol,
yCol,
label = FALSE,
labels = NULL,
trans = c("log10", "log2", "identity"),
r2 = TRUE,
se = TRUE,
colors = list(dots = "black", line = "black", se = "gray")
)
## S4 method for signature 'SummarizedExperiment'
plotCorrelation(object, assay = 1L, ...)
## S4 method for signature 'data.frame'
plotCorrelation(object, labelCol = NULL, ...)
## S4 method for signature 'matrix'
plotCorrelation(
object,
xCol,
yCol,
label = FALSE,
labels = NULL,
trans = c("log10", "log2", "identity"),
r2 = TRUE,
se = TRUE,
colors = list(dots = "black", line = "black", se = "gray")
)
object |
Object. |
labelCol |
|
... |
Additional arguments. |
xCol, yCol |
|
label |
|
labels |
|
trans |
For more information: help(topic = "scale_x_continuous", package = "ggplot2") |
r2 |
|
se |
|
colors |
|
assay |
|
Plot.
Correlation coefficient calcluations are generated by
ggpmisc::stat_poly_eq()
. Refer to the ggpmisc GitHub repo for details.
Updated 2023-08-11.
ggpmisc::stat_poly_eq
.
ggplot2::geom_smooth
.
data(RangedSummarizedExperiment, package = "AcidTest")
## SummarizedExperiment ====
object <- RangedSummarizedExperiment
plotCorrelation(
object = object,
xCol = 1L,
yCol = 2L,
trans = "identity"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.