Learn R Programming

RRRR (version 1.1.1)

plot.RRRR: Plot Objective value of a Robust Reduced-Rank Regression

Description

Plot Objective value of a Robust Reduced-Rank Regression

Usage

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

Value

An ggplot2 object

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.

Author

Yangzhuoran Fin Yang

Examples

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

Run the code above in your browser using DataLab