plot.net_link_prediction: Plot Method for net_link_prediction

View source: R/link_prediction.R

plot.net_link_predictionR Documentation

Description

Plots predicted links overlaid on the existing network. Requires the cograph package for splot().

Usage

## S3 method for class 'net_link_prediction'
plot(x, method = NULL, top_n = 5L, ...)

Arguments

x

A net_link_prediction object.

method

Character. Which method's predictions to plot. Default: first method.

top_n

Integer. Number of top predictions to show. Default: 5.

...

Additional arguments passed to cograph::splot().

Value

The input object, invisibly.

Examples

## Not run: 
net <- build_network(seqs, method = "relative")
pred <- predict_links(net)
plot(pred, top_n = 10)

## End(Not run)

Nestimate documentation built on April 20, 2026, 5:06 p.m.