Learn R Programming

pkggraph (version 0.3.0)

plot.neighborhood_graph: Static plot of package dependencies

Description

Plot of packages dependencies or neighborhood with edges colored by relation and node sized by 'centrality' from a neighborhood_graph obtained from as_graph.

Usage

# S3 method for neighborhood_graph
plot(x, layout = "sugiyama", ...)

Value

ggraph plot

Arguments

x

neighborhood_graph

layout

layout is passed to ggraph::ggraph

...

Not used

Examples

Run this code
if (FALSE) {
init()
get_neighborhood("mboost") |>
  as_graph() |>
  plot()
}

Run the code above in your browser using DataLab