visualiseGroupsetweights: Visualise estimated group set weights

Description Usage Arguments Value See Also Examples

View source: R/ecpc.R

Description

Plot group set weights from multiple cross-validation folds.

Usage

1
2
visualiseGroupsetweights(dfGrps, GroupsetNames, hist = FALSE, boxplot = TRUE, 
                          jitter = TRUE, ps = 1.5, width = 0.5)

Arguments

dfGrps

Data frame containing the following variables; 'Groupset': factor with group set names; 'Groupset.weight': group set weight of each group set; 'Fold': number indicating which fold in the cross-validation is used.

GroupsetNames

Vector with names of the group sets.

hist

Should histogram be plotted?

boxplot

Should boxplot be used or points?

jitter

Should group set weights be jittered?

ps

Point size.

width

Width of jitter.

Value

Plot in ggplot object.

See Also

visualiseGroupset to visualise group sets and visualiseGroupweights to plot estimated group weights.

Examples

1
2
3
4
5
dfGrps <- data.frame(Groupset=rep(c(1,2),each=10),
                     Groupset.weight=c(rnorm(10,0,0.01),rnorm(10,1,0.05)),
                     Fold=rep(1:10,2))
GroupsetNames <- c("Groupset1","Groupset2")
visualiseGroupsetweights(dfGrps, GroupsetNames, hist = FALSE, boxplot = TRUE,jitter=TRUE)

ecpc documentation built on May 3, 2021, 9:08 a.m.