Learn R Programming

⚠️There's a newer version (1.0.11) of this package.Take me there.

DiagrammeR (version 0.8.1)

Create Graph Diagrams and Flowcharts Using R

Description

Create graph diagrams and flowcharts using R.

Copy Link

Version

Install

install.packages('DiagrammeR')

Monthly Downloads

34,997

Version

0.8.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Richard Iannone

Last Published

October 13th, 2015

Functions in DiagrammeR (0.8.1)

create_graph

Create a graph object using data frames representative of nodes and edges
remove_from_series

Remove graph object from a graph series object
trigger_script

Trigger a script embedded in a graph series object
combine_nodes

Combine multiple node data frames into a single node data frame
add_node

Add a node to an existing graph object
edge_count

Get count of all edges or edges with distinct relationship types
replace_in_spec

Razor-like template for diagram specification
x11_hex

X11 colors and hexadecimal color values
render_graph_from_series

Render a graph available in a series
add_to_series

Add graph object to a graph series object
create_edges

Create a data frame with edges and their attributes
vivagraph

Render graph with VivaGraphJS
grViz

R + viz.js
get_predecessors

Get node IDs for predecessor nodes to the specified node
renderDiagrammeR

Widget render function for use in Shiny
import_graph

Import a graph from various graph formats
DiagrammeR

R + mermaid.js
node_type

Create, read, update, delete, or report status of a node type definition
image_icon

Icons and their download locations
is_graph_directed

Is the graph a directed graph?
render_graph

Render the graph or output in various formats
DiagrammeROutput

Widget output function for use in Shiny
get_successors

Get node IDs for successor nodes to the specified node
node_count

Get count of all nodes or certain types of nodes
delete_node

Delete a node from an existing graph object
combine_edges

Combine multiple edge data frames into a single edge data frame
node_present

Determine whether a specified node is present in an existing graph object
create_nodes

Create a data frame with nodes and their attributes
create_random_graph

Create a randomized graph
subset_series

Subset a graph series object
create_subgraph

Create a subgraph based on a walk distance from a specified node
is_graph_empty

Is the graph empty?
node_info

Get detailed information on nodes
grVizOutput

Widget output function for use in Shiny
delete_edge

Delete an edge from an existing graph object
add_edges

Add edges to an existing graph object
get_nodes

Get vector of node IDs
select_graph_from_series

Select a graph available in a series
combine_graphs

Combine two graphs into a single graph
graph_count

Count graphs in a graph series object
create_series

Create a graph series object
series_info

Get detailed information on a graph series
country_graph

Create a graph object that contains the boundaries of a country
visnetwork

Render graph with visNetwork
edge_present

Determine whether a specified edge is present in an existing graph object
display_graph_object

Update and display graph object
edge_rel

Create, read, update, delete, or report status of an edge relationship
renderGrViz

Widget render function for use in Shiny
edge_info

Get detailed information on edges
get_edges

Get node IDs associated with edges
mermaid

R + mermaid.js
deposit_node_count_in_selection

Deposit a count of nodes (available in a selection) in the graph
create_subgraph_from_selection

Create a subgraph based on a selection of nodes or edges
deposit_node_attr_from_selection

Deposit node attributes (based on a selection of nodes) in the graph
add_edges_from_csv

Add edges and attributes from a CSV file
delete_edges_in_selection

Delete all selected edges
select_nodes

Select nodes in a graph
add_n_nodes_to_selection

Add a multiple of new nodes with edges to one or more selected nodes
trav_out

Traverse outward from a selected node, skipping over edges, and creating a new node selection
rescale_node_attr_in_selection

Rescale numeric node attribute values for nodes in a selection
add_nodes_from_df

Add nodes and attributes from a data frame
trav_out_edge

Traverse from one or more selected nodes onto adjacent, outward edges
trav_both

Traverse from one or more selected nodes to predecessors and successors, irrespective of edges, creating a new node selection
deposit_edge_count_in_selection

Deposit a count of edges (available in a selection) in the graph
deposit_edge_attr

Deposit edge attributes in the graph
add_edge_df

Add edges from an edge data frame to an existing graph object
get_paths

Get paths from a specified node in a directed graph
rescale_edge_attr_in_selection

Rescale numeric edge attribute values for edges in a selection
get_graph_from_series

Get a graph available in a series
deposit_edge_attr_from_selection

Deposit edge attributes (based on a selection of edges) in the graph
roll_palette

Create a simple color palette
select_edges

Select edges in a graph
set_node_attr

Set node attributes
select_nodes_in_neighborhood

Select nodes based on a walk distance from a specified node
set_edge_attr

Set edge attributes
clear_selection

Clear a selection of nodes or edges in a graph
trav_in_edge

Traverse from one or more selected nodes onto adjacent, inward edges
trav_out_node

Traverse from one or more selected edges toward adjacent outward nodes
deposit_node_attr

Deposit node attributes in the graph
withdraw_values

Withdraw a stored vector from a graph object
scale_nodes

Create numerical and color scales for node attributes
add_node_df

Add nodes from a node data frame to an existing graph object
invert_selection

Invert selection of nodes or edges in a graph
add_edge

Add an edge between nodes in a graph object
trav_in

Traverse inward to a selected node, skipping over edges, and creating a new node selection
select_edges_by_node_id

Select edges in a graph using node ID values
set_graph_name

Set graph name
get_global_graph_attr

Get global graph attributes
select_nodes_by_degree

Get node degree values from nodes available in a selection
add_n_nodes

Add a multiple of new nodes to the graph
set_edge_attr_with_selection

Set edge attributes based on a selection of edges
get_selection

Get the current selection available in a graph object
delete_nodes_in_selection

Delete all selected nodes
get_edge_df

Get an edge data frame from a graph
add_edges_from_df

Add edges and attributes from a data frame
get_node_df

Get a node data frame from a graph
add_n_nodes_from_selection

Add a multiple of new nodes with edges from one or more selected nodes
scale_edges

Create numerical and color scales for edge attributes
select_last_edge

Select last edge in a series of edges defined in a graph
set_graph_time

Set graph date-time and timezone
set_global_graph_attr

Set global graph attributes
select_last_node

Select last node in a series of node IDs in a graph
select_nodes_by_id

Select nodes in a graph by ID values
add_nodes_from_csv

Add nodes and attributes from a CSV file
set_node_attr_with_selection

Set node attributes based on a selection of nodes
trav_in_node

Traverse from one or more selected edges toward adjacent inward nodes
exportSVG

Export grViz graph as SVG with V8