Rendering Graphs as Coherent Spatial Objects in 'ggplot2'

An interface for rendering 'igraph' objects as 'ggplot2' graphics within a normalized coordinate space. 'RGraphSpace' implements new geometries that treat a graph as a single coherent object, synchronizing node and edge layers under standard aesthetic mappings. Node features are resolved on demand, supporting high-dimensional data without expanding node tables. Spatial alignment is available at the pixel level, with node coordinates anchored to pixel centers through a half-pixel offset, enabling precise node positioning over external reference frames such as images and maps. Core functionality builds on 'igraph', 'ggplot2', and 'tidygraph'; optional geometry and large raster-background images use 'sf' and 'terra' when installed.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("RGraphSpace")

1.5.7 by Mauro Antônio Alves Castro, 14 days ago


https://github.com/sysbiolab/RGraphSpace, https://sysbiolab.github.io/RGraphSpace/


Report a bug at https://github.com/sysbiolab/RGraphSpace/issues


Browse source code at https://github.com/cran/RGraphSpace


Authors: Flávio Gabriel Carazza-Kessler [aut] (ORCID: , Jonathan André Back [aut] (ORCID: , Lana Bazan Peters Querne [aut] (ORCID: , Victor Henrique Apolonio dos Santos [aut] (ORCID: , Vinicius Chagas [ctb] , Mauro Antônio Alves Castro [aut, cre] (ORCID:


Documentation:   PDF Manual  


Artistic-2.0 license


Imports igraph, tidygraph, Matrix, stats, scales, ggrastr, gtable, grid, grDevices, rlang, lifecycle

Depends on methods, ggplot2

Suggests knitr, rmarkdown, testthat, ggraph, ggnewscale, patchwork, sf, terra, SeuratObject, SummarizedExperiment, SpatialExperiment

Enhances RedeR


Depended on by PathwaySpace.


See at CRAN