geom_node_shadowtext: geom_node_shadowtext

View source: R/utils.R

geom_node_shadowtextR Documentation

geom_node_shadowtext

Description

Plot shadowtext at node position.

Usage

geom_node_shadowtext(
  mapping = NULL,
  data = NULL,
  position = "identity",
  show.legend = NA,
  ...
)

Arguments

mapping

aes mapping

data

data to plot

position

positional argument

show.legend

whether to show legend

...

passed to 'params' in 'layer()' function

Details

Plot shadowtext at node position.

Value

geom

Examples

nodes <- data.frame(name=c("hsa:1029","hsa:4171"),
                   x=c(1,1),
                   xmin=c(-1,-1),
                   xmax=c(2,2),
                   y=c(1,1),
                   ymin=c(-1,-1),
                   ymax=c(2,2))
edges <- data.frame(from=1, to=2)
graph <- tidygraph::tbl_graph(nodes, edges)
plt <- ggraph::ggraph(graph, layout="manual", x=x, y=y) +
 geom_node_shadowtext(aes(label=name))

noriakis/wcGeneSummary documentation built on April 22, 2024, 7:12 a.m.