Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fortify.tbl_graph

Fortify a tbl_graph for ggplot2 plotting


Description

In general tbl_graph objects are intended to be plotted by network visualisation libraries such as ggraph. However, if you do wish to plot either the node or edge data directly with ggplot2 you can simply add the tbl_graph object as either the global or layer data and the currently active data is passed on as a regular data frame.

Usage

fortify.tbl_graph(model, data, ...)

tidygraph

A Tidy API for Graph Manipulation

v1.2.0
MIT + file LICENSE
Authors
Thomas Lin Pedersen [cre, aut] (<https://orcid.org/0000-0002-5147-4711>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.