plot.mave: Plot of mave or mave.dim object

Description Usage Arguments See Also Examples

View source: R/plot_mave.R

Description

Plot the scatterplot of given dimension directions and reponse variables.

Usage

1
2
3
4
5
## S3 method for class 'mave'
plot(x, dim = 4, plot.method = pairs, ...)

## S3 method for class 'mave.dim'
plot(x, dim = "dim.min", plot.method = pairs, ...)

Arguments

x

the object returned by mave

dim

the dimension

plot.method

the method for plotting scatter plot. The default is 'pairs'

...

arguments passed to the plot.method.

See Also

mave for computing the dimension reduction space

Examples

1
2
3
4
5
6
7
8
9
x = matrix(rnorm(2000),400,5)
beta1 = as.matrix(c(1,1,0,0,0))
beta2 = as.matrix(c(0,0,1,1,0))
err = as.matrix(rnorm(400))
y = (x%*%beta1)^2+x%*%beta2+err
dr = mave(y~x, method = 'meanopg')
dr.dim = mave.dim(dr)
plot(dr,dim=3)
plot(dr.dim)

MAVE documentation built on March 3, 2021, 1:12 a.m.