Plot ConstructionWhile ggraph builds on top of ggplot2 it uses its own function to initialise plots, allowing you to set global settings such as layouts etc. |
|
---|---|
Create a ggraph plot |
|
Quickplot wrapper for networks |
|
LayoutsLayouts specify the spatial positioning of the nodes in the graph. In addition to calculating x and y coordinates for the nodes some layouts also calculate additional metrics used when plotting, e.g. width and height for treemap layouts. Layouts are specified in the |
|
Automatically pick a layout based on graph type |
|
Manually specify a layout for layout_tbl_graph |
|
Place nodes using stress majorisation |
|
Use igraph layout algorithms for layout_tbl_graph |
|
Place node to emphasize group structure |
|
Place nodes based on a multidimensional scaling of a set of pivot nodes |
|
Place nodes according to their eigenvalues |
|
Place nodes in circles according to centrality measure |
|
Place nodes in circles based on distance to a specific node |
|
Apply a dendrogram layout to layout_tbl_graph |
|
Create an unrooted layout using equal-angle or equal-daylight |
|
Place nodes on a line or circle |
|
Calculate nodes as circles packed within their parent circle |
|
Calculate nodes as rectangles subdividing that of their parent |
|
Calculate nodes as areas dividing their parent |
|
Calculate nodes as fractal circle buds |
|
Layout binary trees in a fractal H formation |
|
Place nodes on a diagonal |
|
Place nodes in a Hive Plot layout |
|
Create a fabric layout |
|
Place nodes on their geographical space |
|
Place nodes according to the standard design of metro maps |
|
NodesWhile nodes are often thought of as points in a hairball graph, they are much more than that, depending on the layout type. |
|
Show nodes as points |
|
Annotate nodes with text |
|
Draw the rectangles in a treemap |
|
Show nodes as voronoi tiles |
|
Show nodes as circles |
|
Show nodes as thick arcs |
|
Show nodes as a line spanning a horizontal range |
|
Show nodes as POINTs in geographical space |
|
EdgesEdges are the entities connecting nodes, often drawn with some sort of line. Certain layouts calls for other types, e.g. a matrix plot where edges are illustrated with points. |
|
Draw edges as straight lines between nodes |
|
Draw edges as Arcs |
|
|
Draw multi edges as parallel lines |
Draw edges as curves of different curvature |
|
Draw edges as diagonals |
|
|
Draw edges as diagonals |
Draw edges as elbows |
|
Draw edges as diagonals |
|
Draw edges in hive plots |
|
Draw edges as vertical spans |
|
Draw edges as glyphs |
|
Draw edges as glyphs |
|
Show edges as a density map |
|
|
Bundle edges using force directed edge bundling |
|
Bundle edges using edge path bundling |
|
Bundle edges along the minimal spanning tree |
Draw edges as LINESTRINGs in geographical space |
|
ConnectionsConnections are meta-edges, connecting nodes that are not direct neighbors, either through their shortest path or directly. |
|
Create hierarchical edge bundles between node connections |
|
FacetsFaceting with networks is a bit different than for tabular data, as you’d often want to facet only nodes, or edges etc. |
|
Create a grid of small multiples by node and/or edge attributes |
|
Create small multiples based on node attributes |
|
Create small multiples based on edge attributes |
|
ScalesWhile nodes uses the standard scales provided by ggplot2, edges have their own, allowing you to have different scaling for nodes and edges. |
|
|
Edge colour scales |
|
Edge fill scales |
|
Edge alpha scales |
|
Edge width scales |
|
Edge size scales |
|
Edge linetype scales |
|
Edge shape scales |
|
Edge label size scales |
GuidesAs for scales, the edge geoms comes with their own guides. |
|
Edge direction guide |
|
Colourbar legend for edges |
|
Coloursteps legend for edges |
|
Helpersggraph contains an assortment of helpers for various tasks related to plotting. |
|
Draw rectangular bars and labels on hive axes |
|
Create a node extractor function |
|
Create edge extractor function |
|
Create a connection extractor function |
|
|
Define simple shapes for line capping |
Get the angle of nodes and edges |
|
Pack circles together |
|
|
A theme tuned for graph visualizations |
DataTo facilitate playing around ggraph includes a set of small network datasets |
|
The class hierarchy of the flare visualization library |
|
Friendship among high school boys |
|
Membership network of American Whigs |