plotMultiCompare: plotMultiCompare

View source: R/ROBIN_plots.R

plotMultiCompareR Documentation

plotMultiCompare

Description

This function plots the curves of the measure of many community detection algorithms compared.

Usage

plotMultiCompare(..., title = "Robin plot", ylim1 = FALSE)

Arguments

...

all robin objects obtained from the comparison between one community detection algorithm and all the others

title

character a title for the plot (default is "Robin plot")

ylim1

logical for spanning the y axis from 0 to 1 (default is FALSE)

Value

a ggplot2 object

Examples

my_file <- system.file("example/football.gml", package="robin")
graph <- prepGraph(file=my_file, file.format="gml")
comp1 <- robinCompare(graph=graph, method1="fastGreedy",method2="louvain")
comp2 <- robinCompare(graph=graph, method1="fastGreedy",method2="infomap")
plotMultiCompare(comp1,comp2)

robin documentation built on April 4, 2025, 6:08 a.m.