plot {rrpack} | R Documentation |
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 |
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.
[Package rrpack version 0.1-13 Index]