plot.bqs | R Documentation |
Produce a plot of bqs (Bootstrap Quadratic Scores). This function creates plots based on the BQS (Bootstrap Quality Scores) data.
## S3 method for class 'bqs'
plot(x, score = NULL, perc_scale = FALSE, top = NULL, annotate = NULL, ...)
x |
An S3 object of class |
score |
Character vector specifying the score(s) to be plotted. Valid scores are |
perc_scale |
Logical; if |
top |
Numeric; specifies the number of top models to individually highlight. Must be a single number less than or equal to the length of |
annotate |
Logical; if |
... |
Further arguments passed to or from other methods. |
A plot displaying the Bootstrap Quality Scores.
bqs
# load data
data("banknote")
dat <- banknote[-1]
# set up methods
mlist <- mset_gmix(K=1:3, erc=c(1,100))
# perform bootstrap
# change B and ncores to a much larger value in real problems
res <- bqs(dat, mlist, B = 3, type = "both", rankby="lq",
ncores = 1, oob = TRUE, savescores = FALSE, saveparams = FALSE)
# Plot with default settings
plot(res)
# Plot in percentage scale relative to first model
plot(res, perc_scale = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.