Description Usage Arguments Examples
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.
1 | theme_cobweb(base_size = 11, base_family = "")
|
base_size |
base font size |
base_family |
base font family |
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.