geom_node_shadowtext | R Documentation |
Plot shadowtext at node position.
geom_node_shadowtext(
mapping = NULL,
data = NULL,
position = "identity",
show.legend = NA,
...
)
mapping |
aes mapping |
data |
data to plot |
position |
positional argument |
show.legend |
whether to show legend |
... |
passed to 'params' in 'layer()' function |
Plot shadowtext at node position.
geom
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.