Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

http://rich-iannone.github.io/DiagrammeR/graph_creation.html #208

Closed
Tracked by #508
jakubkuzilek opened this issue Jan 31, 2017 · 3 comments
Closed
Tracked by #508

http://rich-iannone.github.io/DiagrammeR/graph_creation.html #208

jakubkuzilek opened this issue Jan 31, 2017 · 3 comments

Comments

@jakubkuzilek
Copy link

The examples found on the page (http://rich-iannone.github.io/DiagrammeR/graph_creation.html) are not really working. For example, function create_nodes does not exist in the package (installed version 0.9.1 from Github).

@dmpe
Copy link

dmpe commented Jul 21, 2017

Hi @rich-iannone,
the
code in

###
# Create a simple graph
# and display it
###

should be

library(DiagrammeR)

# Create a simple NDF
nodes <-
  create_node_df(
    n = 4,
    type = "number")

# Create a simple EDF
edges <-
  create_edge_df(
    from = c(1, 1, 3, 1),
    to = c(2, 3, 4, 4),
    rel = "related")

# Create the graph object,
# incorporating the NDF and
# the EDF, and, providing
# some global attributes
graph <-
  create_graph(
    nodes_df = nodes,
    edges_df = edges)

# View the graph
render_graph(graph)

I guess

@dani-too
Copy link

Hi all,

Does anyone know if there is a way to set the direction that nodes flow?

@olivroy olivroy mentioned this issue Nov 16, 2023
11 tasks
@olivroy
Copy link
Collaborator

olivroy commented Dec 8, 2023

This was fixed. Indeed, the function to use is create_node_df() to create nodes. Feel free to reopen a new issue if something can be improved.

@olivroy olivroy closed this as completed Dec 8, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

5 participants