Defines the Abstract Class for all PackageGraphReporters defined in pkgnet. The class is not meant to be instantiated, but inherited from and its methods overloaded such that each Metric implements certain functionality.

AbstractGraphReporter

Format

An object of class R6ClassGenerator of length 24.

Public Members

edges

A data.table from SOURCE to TARGET nodes describing the connections

nodes

A data.table with node as an identifier, and augmenting information about each node

pkg_graph

An igraph object describing the package graph

network_measures

A list of network measures calculated by calculate_network_features

layout_type

Character string indicating currently active graph layout

graph_viz

visNetwork object of package graph

Active Bindings

pkg_graph

Returns the graph object

network_measures

Returns a table of network measures, one row per node

graph_viz

Returns the graph visualization object

layout_type

If no value given, the current layout type for the graph visualization is returned. If a valid layout type is given, this function will update the layout_type field. You can use grep("^layout_\\S", getNamespaceExports("igraph"), value = TRUE) to see valid options.

See also

Other AbstractReporters: AbstractPackageReporter