plot.abessrpca function

Creat plot from a fitted "abessrpca" object

Creat plot from a fitted "abessrpca" object

Produces a sparse-matrix/loss/tuning-value plot for a fitted "abessrpca" object.

## S3 method for class 'abessrpca' plot(x, type = c("S", "loss", "tune"), support.size = NULL, label = TRUE, ...)

Arguments

  • x: A "abessrpca" object.

  • type: The plot type. One of the following: "S" (i.e., a heatmap for the sparse matrix estimation), "loss" (i.e., a support.size versus loss plot), and "tune" (i.e., , a support.size versus tuning value plot). Default is "coef".

  • support.size: An integer vector specifies the sparse matrix fitted at given support.size to be returned. If support.size = NULL, then the sparse matrix with the least tuning value would be returned. Default: support.size = NULL.

  • label: A logical value. If label = TRUE (the default), label the curves with variable sequence numbers.

  • ...: Other graphical parameters to plot

    or stats::heatmap function

Returns

No return value, called for side effects.