theme_cobweb: Theme for cobweb visualization

Description Usage Arguments Examples

Description

theme_cobweb Provides the theme to the geom_cobweb ggplot2 function. It is advised to also add coord_equal() to the plot to achieve a cobweb with of equal lengths.

Usage

1
theme_cobweb(base_size = 11, base_family = "")

Arguments

base_size

base font size

base_family

base font family

Examples

1
2
3
4
5
6
7
8
9
library(ggplot2)
n_comparison = 3
AUC.df = data.frame(type = c(rep("ROC",6),rep("Random",6)),  
                    AUCs = c(0.34, 1.00, 0.56, 0.40, 0.37, 0.45, rep(1/n_comparison, 6)))
ggplot(AUC.df, aes(AUCs = AUCs,  colour = type)) +
    geom_cobweb() + 
    theme_cobweb() +
    ggtitle("Test plot") +
    coord_equal()

Beirnaert/ggROCcobweb documentation built on May 31, 2019, 5:18 p.m.