Visualize the expression of protein of interest in each target tissue by cell types.
hpaVisTissue(
data = NULL,
targetGene = NULL,
targetTissue = NULL,
targetCellType = NULL,
color = c("#FCFDBF", "#FE9F6D", "#DE4968", "#8C2981"),
customTheme = FALSE
)Input the list object generated by hpa_download() or
hpa_subset(). Require the normal_tissue dataset. Use HPA
histology data (built-in) by default.
Vector of strings of HGNC gene symbols. By default it is
set to c('TP53', 'EGFR', 'CD44', 'PTEN'). You can also mix
HGNC gene symbols and ensemnl ids (start with ENSG) and they will be
converted to HGNC gene symbols.
Vector of strings of normal tissues. Default to all.
Vector of strings of normal cell types. Default to all.
Vector of 4 colors used to depict different expression levels.
Logical argument. If TRUE, the function will return
a barebone ggplot2 plot to be customized further.
This function will return a ggplot2 plot object, which can be further modified if desirable. The tissue data is visualized as a heatmap: x axis contains inquired protein and y axis contains tissue/cells of interest.
Other visualization functions:
hpaVisPatho(),
hpaVisSubcell(),
hpaVis()
data("hpa_histology_data")
geneList <- c('TP53', 'EGFR', 'CD44', 'PTEN', 'IDH1', 'IDH2', 'CYCS')
tissueList <- c('breast', 'cerebellum', 'skin 1')
## A typical function call
hpaVisTissue(data=hpa_histology_data,
targetGene=geneList,
targetTissue=tissueList)
#> * WARNING: targetCellType variable not specified, visualize all.
#> >> Use hpaListParam() to list possible values for target variables.