kb_plot: Simple Plot Of Shortest Distance Between CRAN Authors

Description Usage Arguments Value Examples

View source: R/create_outputs.R

Description

Returns a ggplot2 object that represents the degrees of separation between the two named authors that were provided to kevinbacran::kb_pair(). The two named authors are terminal nodes. Intermediate nodes represent intermediate authors that link via edges that represent a package that the authors collaborated on.

Usage

1
kb_plot(pair_graph)

Arguments

pair_graph

A tidygraph object of CRAN authors/packages created with kb_pair()

Value

A ggraph plot

Examples

1
2
3
4
5
## Not run: 
 <- kb_plot(pair_graph)
print(separation)

## End(Not run)

matt-dray/kevinbacran documentation built on Dec. 15, 2019, 12:37 a.m.