Plot Objective value of a Robust Reduced-Rank Regression

# S3 method for 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

Yangzhuoran Fin Yang

Examples

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