Description Usage Arguments Value ggbiplot Issues Author(s) See Also Examples
Plots Two Main Components of Principal Component Analysis
1 2 3 |
x |
A |
group.names |
Names of group variable to use in labels of the plot. |
title |
The title of a plot. |
return.pca |
Should return pca object additionaly to pca plot? |
scale |
As in prcomp. |
center |
As in prcomp. |
var.scale |
As in |
obs.scale |
As in |
ellipse |
As in |
circle |
As in |
var.axes |
As in |
alpha |
As in |
add.lines |
Should axis lines be added to plot. |
... |
Further arguments passed to prcomp. |
If return.pca = TRUE
then a list containing a PCA plot (of class ggplot
) and a pca
model, the result of prcomp function.
If not, then only PCA plot is returned.
This function is based on https://github.com/vqv/ggbiplot
which had to be copied to RTCGA because Bioconductor
does not support
remote dependencies from GitHub
.
If you have any problems, issues or think that something is missing or is not clear please post an issue on https://github.com/RTCGA/RTCGA/issues.
Marcin Kosinski, m.p.kosinski@gmail.com
RTCGA website http://rtcga.github.io/RTCGA/Visualizations.html.
Other RTCGA: RTCGA-package
,
boxplotTCGA
, checkTCGA
,
convertTCGA
, datasetsTCGA
,
downloadTCGA
,
expressionsTCGA
, heatmapTCGA
,
infoTCGA
, installTCGA
,
kmTCGA
, mutationsTCGA
,
readTCGA
, survivalTCGA
,
theme_RTCGA
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
library(dplyr)
## RNASeq expressions
library(RTCGA.rnaseq)
expressionsTCGA(BRCA.rnaseq, OV.rnaseq, HNSC.rnaseq) %>%
rename(cohort = dataset) %>%
filter(substr(bcr_patient_barcode, 14, 15) == "01") -> BRCA.OV.HNSC.rnaseq.cancer
pcaTCGA(BRCA.OV.HNSC.rnaseq.cancer, "cohort")
pcaTCGA(BRCA.OV.HNSC.rnaseq.cancer, "cohort", add.lines = FALSE)
pcaTCGA(BRCA.OV.HNSC.rnaseq.cancer, "cohort", return.pca = TRUE) -> pca.rnaseq
pca.rnaseq$plot
pca.rnaseq$pca
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.