Skip to content

Instantly share code, notes, and snippets.

@lgatto
Last active February 10, 2016 10:38
Show Gist options
  • Save lgatto/dbdcdb5b76e83d202ed7 to your computer and use it in GitHub Desktop.
Save lgatto/dbdcdb5b76e83d202ed7 to your computer and use it in GitHub Desktop.
Tfe3 and hyperLOPIT plot
## 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