[R] 2 D density plot interpretation and manipulating the data
Ana Marija
@okov|c@@n@m@r|j@ @end|ng |rom gm@||@com
Thu Oct 8 22:52:12 CEST 2020
Hello,
I have a data frame like this:
> head(SNP)
mean var sd
FQC.10090295 0.0327 0.002678 0.0517
FQC.10119363 0.0220 0.000978 0.0313
FQC.10132112 0.0275 0.002088 0.0457
FQC.10201128 0.0169 0.000289 0.0170
FQC.10208432 0.0443 0.004081 0.0639
FQC.10218466 0.0116 0.000131 0.0115
...
and I am creating plot like this:
s <- ggplot(SNP, mapping = aes(x = mean, y = var))
s <- s + geom_density_2d() + geom_point() + my.theme + ggtitle("SNPs")
s
I am getting plot in attach.
My question is how do I:
1.interpret the inclusion versus exclusion within the ellipses-contours?
2. how do I extract from my data frame the points which are outside of ellipses?
Thanks
Ana
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snps.pdf
Type: application/pdf
Size: 27821 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20201008/d35a5c66/attachment.pdf>
More information about the R-help
mailing list