Skip to contents

Plots the two lines fitted to the unique, sorted log degrees of the graph.

Usage

# S3 method for class 'extract_sparse'
autoplot(object, ...)

Arguments

object

The output of the function 'extract_sparse'

...

Other arguments currently ignored

Value

A ggplot object.

Examples

library(igraph)
#> 
#> Attaching package: ‘igraph’
#> The following objects are masked from ‘package:stats’:
#> 
#>     decompose, spectrum
#> The following object is masked from ‘package:base’:
#> 
#>     union
gr <- sample_pa(10000, power = 1.2, directed = FALSE)
sparse <- extract_sparse(gr)
autoplot(sparse)