oscar.bs.plot {oscar}R Documentation

Bootstrap heatmap plot for oscar models

Description

This function neatly plots a colourized proportion of variables chosen as a function of cardinalities over a multitude of bootstrap runs. This helps model diagnostics in assesssing variable importance.

Usage

oscar.bs.plot(
  fit,
  bs,
  kmax,
  cex.axis = 0.6,
  palet = colorRampPalette(c("orange", "red", "black", "blue", "cyan"))(dim(bs)[3]),
  nbins = dim(bs)[3],
  Colv = NA,
  Rowv = NA,
  ...
)

Arguments

fit

Fitted oscar S4-class object

bs

Bootstrapped 3-dimensional array for an oscar object as produced by oscar.bs

kmax

Maximum cardinality 'k'

cex.axis

Axis magnification

palet

Colour palette

nbins

Number of bins (typically ought to be same as number of colours in the palette)

Colv

Column re-ordering indices or a readily built dendrogram

Rowv

Row re-ordering indices or a readily built dendrogram

...

Additional parameters passed on to the hamlet::hmap function

Details

Further heatmap parameters available from ?hmap

Value

This is a plotting function that does not return anything, but instead draws on a new graphics device.

Examples

if(interactive()){
  data(ex)
  fit <- oscar(x=ex_X, y=ex_Y, k=ex_K, w=ex_c, family='cox')
  fit_bs <- oscar.bs(fit, bootstrap = 20, seed = 123)
  oscar.bs.plot(fit, fit_bs)
}

[Package oscar version 1.2.1 Index]