Draw a BioCarta pathway
grid.biocarta(
pathway,
color = NULL,
x = unit(0.5, "npc"),
y = unit(0.5, "npc"),
width = NULL,
height = NULL,
just = "centre",
default.units = "npc",
name = NULL
)
biocartaGrob(
pathway,
color = NULL,
x = unit(0.5, "npc"),
y = unit(0.5, "npc"),
width = NULL,
height = NULL,
just = "centre",
default.units = "npc",
name = NULL
)
A BioCarta pathway ID, a MSigDB ID or a biocarta_pathway
object. All valid BioCarta pathway IDs are in all_pathways()
.
The list of MSigDB IDs for BioCarta pathways can be found at https://www.gsea-msigdb.org/gsea/msigdb/human/genesets.jsp?collection=CP:BIOCARTA.
A named vector where names should correspond to Entrez IDs.
A numeric vector or unit object specifying x-location.
A numeric vector or unit object specifying y-location.
A numeric vector or unit object specifying width.
A numeric vector or unit object specifying width.
The same as in grid::viewport()
.
The same as in grid::viewport()
.
The same as in grid::viewport()
.
biocartaGrob()
returns a gTree
object.
The graphics object contains a pathway image and genes highlighted on the image.
The aspect ratio of the image is kept. If one of width
and height
is set, the
other dimension is calculated by the aspect ratio. If both of width
and height
is set or inherit from parent viewport, the width and height are automatically adjust
to let one dimension completely fill the viewport.
library(grid)
grid.newpage()
grid.biocarta("h_RELAPathway")
grob = biocartaGrob("h_RELAPathway")