plotCorrelation | R Documentation |
Correlation X-Y scatterplot
plotCorrelation(object, ...)
## S4 method for signature 'DFrame'
plotCorrelation(
object,
xCol,
yCol,
pointLabelCol = NULL,
labels = list(title = NULL, subtitle = NULL, x = NULL, y = NULL),
trans = c("identity", "log10", "log2"),
r2 = TRUE,
se = TRUE,
colors = list(dots = "black", line = "black", se = "gray")
)
## S4 method for signature 'Matrix'
plotCorrelation(object, xCol, yCol, labelPoints = FALSE, ...)
## S4 method for signature 'SummarizedExperiment'
plotCorrelation(object, assay = 1L, ...)
## S4 method for signature 'data.frame'
plotCorrelation(
object,
xCol,
yCol,
pointLabelCol = NULL,
labels = list(title = NULL, subtitle = NULL, x = NULL, y = NULL),
trans = c("identity", "log10", "log2"),
r2 = TRUE,
se = TRUE,
colors = list(dots = "black", line = "black", se = "gray")
)
## S4 method for signature 'matrix'
plotCorrelation(object, xCol, yCol, labelPoints = FALSE, ...)
object |
Object. |
xCol , yCol |
|
pointLabelCol |
|
labels |
|
trans |
For more information: help(topic = "scale_x_continuous", package = "ggplot2") |
r2 |
|
se |
|
colors |
|
labelPoints |
|
... |
Additional arguments. |
assay |
|
Plot.
Correlation coefficient calcluations are generated by
ggpmisc::stat_poly_eq
. Refer to the ggpmisc GitHub repo for details.
Updated 2023-12-10.
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.