Last active
February 10, 2016 10:38
-
-
Save lgatto/dbdcdb5b76e83d202ed7 to your computer and use it in GitHub Desktop.
Tfe3 and hyperLOPIT plot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## load packages and data | |
library("pRoloc") | |
library("pRolocdata") | |
data(hyperLOPIT2015) | |
## produce PCA plot | |
plot2D(hyperLOPIT2015) | |
addLegend(hyperLOPIT2015, where = "bottomleft", cex = .7) | |
## Find Tfe3's identifier and define it as a | |
## feature of interest that can be overlaid on the PCA plot | |
id <- featureNames(hyperLOPIT2015)[grep("TFE3", fData(hyperLOPIT2015)[, 1])] | |
tfe3 <- FeaturesOfInterest(id, description = "Tfe3") | |
highlightOnPlot(hyperLOPIT2015, tfe3, pch = 19, cex = 2) | |
highlightOnPlot(hyperLOPIT2015, tfe3, pch = 19, cex = 1, labels = TRUE, pos = 3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment