Skip to contents

GraphSpace

GraphSpace-class
GraphSpace: An S4 class for igraph objects
GraphSpace(<ANY>) GraphSpace(<data.frame>)
Create a GraphSpace object
as.GraphSpace()
Convert objects to GraphSpace
getGraphSpace(<GraphSpace>)
Accessors for fetching slots from a GraphSpace object
updateGraphSpace(<GraphSpace>)
Update a GraphSpace object
normalizeGraphSpace(<GraphSpace>)
Normalize node coordinates to graph and image spaces
cropGraphSpace(<GraphSpace>) flipGraphSpace(<GraphSpace>) rotateGraphSpace(<GraphSpace>) transposeGraphSpace(<GraphSpace>)
Crop, rotate, flip, and transpose a GraphSpace
summary(<GraphSpace>)
Summarise a GraphSpace object

Accessors

Graph manipulation

gs_subset_nodes() gs_subset_edges()
Filter nodes and edges in a GraphSpace object
gs_add_nodes(<GraphSpace>) `gs_add_nodes<-`(<GraphSpace>)
Add nodes to a GraphSpace object
gs_add_edges(<GraphSpace>) `gs_add_edges<-`(<GraphSpace>)
Add edges to a GraphSpace object
gs_compute()
Apply igraph functions to the graph inside a GraphSpace
`[`(<GraphSpace>,<ANY>,<ANY>,<ANY>) `[[`(<GraphSpace>)
Subscript operators for GraphSpace objects
gs_vertex_attr(<GraphSpace>) `gs_vertex_attr<-`(<GraphSpace>) gs_edge_attr(<GraphSpace>) `gs_edge_attr<-`(<GraphSpace>)
Attribute utilities for GraphSpace objects

Features

gs_fetch_features() gs_add_features()
Manipulate node features in a GraphSpace object

Geometry manipulation

ggplot2 integration

ggplot(<GraphSpace>)
Using ggplot2 with GraphSpace objects
inject_nodespace()
Dynamic Scale Injection for Edge Clipping

Geoms

geom_nodespace() nodespace_handler()
Draw node elements in a 2D graph layout
geom_edgespace() edgespace_handler()
Draw edge elements in a 2D graph layout
geom_graphspace()
Convenience wrapper for node and edge geoms

Annotation

annotation_gspace_image()
Annotate a GraphSpace Plot with an Image

Plotting

plotGraphSpace(<GraphSpace>) plotGraphSpace(<igraph>) plotGraphSpace(<tbl_graph>) plotGraphSpace(<gs_graph>)
Wrapper function to plot GraphSpace objects in ggplot2
plot(<GraphSpace>)
Plot GraphSpace objects

Themes

Utilities

as_colorraster()
Map numeric values to a color raster
sfshape_star() sfshape_stars()
Build star polygons
sfshape_ngon() sfshape_ngons()
Build regular polygons

Data

gtoy1 gtoy2
Toy 'igraph' objects
gs_image_toy
Toy 'GraphSpace' object

Internal

GeomEdgeSpace
GeomEdgeSpace: a ggplot2 prototype for GraphSpace-class methods
GeomNodeSpace
GeomNodeSpace: a ggplot2 prototype for GraphSpace-class methods
StatEdgeSpace
Attribute Processing for GeomEdgeSpace
StatNodeSpace
Attribute Processing for GeomNodeSpace

Package

RGraphSpace RGraphSpace-package
RGraphSpace: Rendering Graphs as Coherent Spatial Objects in 'ggplot2'