Learn R Programming

robin (version 2.0.0)

plot.robin: plot.robin

Description

This function plots two curves: the measure of the null model and the measure of the real graph or the measure of the two community detection algorithms.

Usage

# S3 method for robin
plot(x, title = "Robin plot", ...)

Value

A ggplot object.

Arguments

x

A robin class object. The output of the functions: robinRobust and robinCompare.

title

The title for the graph. The default is "Robin plot".

...

other parameter

Examples

Run this code
if (FALSE) my_file <- system.file("example/football.gml", package="robin")
graph <- prepGraph(file=my_file, file.format="gml")
comp <- robinCompare(graph=graph, method1="fastGreedy",method2="louvain")
plot(comp)

Run the code above in your browser using DataLab