Skip to content

Dendrogram layout fails with error "object 'direction' not found" #81

Description

@atheriel

This is a more general version of the errors reported in #72 and #79.

The code (verbatim from several examples)

fgraph <- igraph::graph_from_data_frame(flare$edges, vertices = flare$vertices)
ggraph(fgraph, layout = "dendrogram") +
  geom_edge_elbow()

fails with (as in #72):

Error in eval(expr, envir, enclos) : object 'direction' not found

Passing e.g. direction = "out" in either ggraph() or in geom_edge_elbow itself yields the same error. Wrapping it in an aes() call, e.g.

ggraph(fgraph, layout = "dendrogram") +
  geom_edge_elbow(aes(direction = "out"))

emits the warning (as in #79)

Warning message:
Removed 251 rows containing non-finite values (stat_edge_elbow).

and draws an empty plot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions