Description Usage Arguments Details See Also Examples
geom_cor
will add the correlatin, method and p-value to the plot
automatically guessing the position if nothing else specidfied.
family font, size and colour can be used to change the format.
1 2 3 4 5 6 7 8 9 |
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
method |
Method to calculate the correlation. Values are
passed to |
xpos |
Locate text at that position on the x axis. |
ypos |
Locate text at that position on the y axis. |
inherit.aes |
If |
... |
other arguments passed on to |
It was integrated after reading this tutorial to extend ggplot2 layers
1 2 3 4 5 6 7 8 | data(humanGender)
library(SummarizedExperiment)
library(ggplot2)
ggplot(as.data.frame(assay(humanGender)[1:1000,]),
aes(x = NA20502, y = NA20504)) +
geom_point() +
ylim(0,1.1e5) +
geom_cor(method = "kendall", ypos = 1e5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.