Description Usage Arguments Value Examples
Create graph of category hierarchy
1 | categories_graph(taxonomy = NULL)
|
taxonomy |
A data frame returned by or NULL. |
Categories as a tbl_graph
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
library(ggraph)
graph <- categories_graph()
# In principle there should be graph data available, but let's check.
if (!is.null(graph)) {
ggraph(graph, 'tree') +
geom_edge_link() +
geom_node_point() +
geom_node_label(aes(label = category_label)) +
theme_graph()
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.