Draw a BioCarta pathway
grid.pathway(
pathway,
color = NULL,
x = unit(0.5, "npc"),
y = unit(0.5, "npc"),
width = NULL,
height = NULL,
just = "centre",
default.units = "npc",
name = NULL
)
pathwayGrob(
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 pathway ID or a biocarta_pathway object.
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().
pathwayGrob() 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.pathway("h_RELAPathway")
grob = pathwayGrob("h_RELAPathway")