visualiseGroupsetweights {ecpc} | R Documentation |
Visualise estimated group set weights
Description
Plot group set weights from multiple cross-validation folds.
Usage
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
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)
[Package ecpc version 3.1.1 Index]