plot_path {rsemmed} | R Documentation |
Plot the graph form of a path
plot_path(graph, path)
graph |
The SemMed graph |
path |
A vertex sequence ( |
All connections among nodes along the supplied path are plotted with nodes labeled with their name and edges labeled with their predicate.
A plot is created on the current graphics device
text_path
for textual display of paths
data(g_mini) node_cortisol <- find_nodes(g_mini, names = "Serum cortisol") node_stress <- find_nodes(g_mini, names = "Chronic Stress") paths <- find_paths(g_mini, from = node_cortisol, to = node_stress) plot_path(g_mini, paths[[1]][[1]])