visualiseGroupsetweights | R Documentation |
Plot group set weights from multiple cross-validation folds.
visualiseGroupsetweights(dfGrps, GroupsetNames, hist = FALSE, boxplot = TRUE, jitter = TRUE, ps = 1.5, width = 0.5)
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. |
Plot in ggplot object.
visualiseGroupset
to visualise group sets and visualiseGroupweights
to plot estimated group weights.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.