Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot

Scatter Plot


Description

S3 methods generating scatter plot for some objects generated by rrpack using ggplot2. An ggplot2 object is returned so that users are allowed to easily further customize the plot.

Usage

## S3 method for class 'rrr'
plot(x, y = NULL, layer = 1L,
  xlab = paste("latent predictor ", layer, sep = ""),
  ylab = paste("latent response ", layer, sep = ""), ...)

## S3 method for class 'sofar'
plot(x, y = NULL, layer = 1L,
  xlab = paste("latent predictor ", layer, sep = ""),
  ylab = paste("latent response ", layer, sep = ""), ...)

## S3 method for class 'cv.sofar'
plot(x, y = NULL, layer = 1L,
  xlab = paste("latent predictor ", layer, sep = ""),
  ylab = paste("latent response ", layer, sep = ""), ...)

## S3 method for class 'srrr'
plot(x, y = NULL, layer = 1L,
  xlab = paste("latent predictor ", layer, sep = ""),
  ylab = paste("latent response ", layer, sep = ""), ...)

## S3 method for class 'cv.srrr'
plot(x, y = NULL, layer = 1L,
  xlab = paste("latent predictor ", layer, sep = ""),
  ylab = paste("latent response ", layer, sep = ""), ...)

## S3 method for class 'rssvd'
plot(x, y = NULL, layer = 1L,
  xlab = paste("latent predictor ", layer, sep = ""),
  ylab = paste("latent response ", layer, sep = ""), ...)

Arguments

x

Some object generated by rrpack.

y

NULL. Do not need to specify.

layer

The unit-rank layer to plot; cannot be larger than the estimated rank

xlab

Label of X axis.

ylab

Label of Y axis.

...

Other argumnts for future usage.

Value

ggplot2 object.


rrpack

Reduced-Rank Regression

v0.1-11
GPL (>= 3)
Authors
Kun Chen [aut, cre] (<https://orcid.org/0000-0003-3579-5467>), Wenjie Wang [ctb] (<https://orcid.org/0000-0003-0363-3180>), Jun Yan [ctb] (<https://orcid.org/0000-0003-4401-7296>)
Initial release
2019-11-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.