Learn R Programming

graphonmix (version 0.0.1.0)

autoplot.extract_sparse: Plots the output of extract_sparse function.

Description

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

Usage

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

Value

A ggplot object.

Arguments

object

The output of the function 'extract_sparse'

...

Other arguments currently ignored

Examples

Run this code
library(igraph)
gr <- sample_pa(10000, power = 1.2, directed = FALSE)
sparse <- extract_sparse(gr)
autoplot(sparse)

Run the code above in your browser using DataLab