R/glyph_graph.R

Defines functions glyph_graph

Documented in glyph_graph

#' Generates a glyph as a tidygraph object.
#'
#' @param edges - a data.frame, or object coercable to, with the edges for the glyph.
#' @return An (undirected) tidygraph containing those edges.
#' @export


glyph_graph <- function(edges){
  edges <- tibble::as_tibble(edges)

  tidygraph::tbl_graph(nodes=nodes, edges=edges, directed=F)
}
jimr1603/GlyphR documentation built on Nov. 4, 2019, 2:43 p.m.