plot.RRRR {RRRR}R Documentation

Plot Objective value of a Robust Reduced-Rank Regression

Description

Plot Objective value of a Robust Reduced-Rank Regression

Usage

## S3 method for class 'RRRR'
plot(x, aes_x = c("iteration", "runtime"), xlog10 = TRUE, ...)

Arguments

x

An RRRR object.

aes_x

Either "iteration" or "runtime". The x axis in the plot.

xlog10

Logical, indicates whether the scale of x axis is log 10 transformed.

...

Additional argument to ggplot2.

Value

An ggplot2 object

Author(s)

Yangzhuoran Fin Yang

Examples

set.seed(2222)
data <- RRR_sim()
res <- RRRR(y=data$y, x=data$x, z = data$z)
plot(res)

[Package RRRR version 1.1.1 Index]