plot.geneJAM | R Documentation |
Two plots (selectable by which) are currently available: a plot of the mean standard error curve produced by geneJAM i.e., the MSE and upper and lower standard deviation curves plotted against the values of rho used in the fits, and an adjacency matrix plot for rho.min.
## S3 method for class 'geneJAM' plot( x, which = c(1L:2L), main = "", xlab = NULL, ylab = NULL, ask = prod(par("mfcol")) < length(which) && dev.interactive(), pointsCol = "#D95F02", ylim = NULL, xlim = NULL, col = NULL, ... )
x |
Fitted "geneJAM" object. |
which |
If a subset of the plots is required, specify a subset of the numbers |
main |
An overall title for the plot: see |
xlab |
A title for the x axis: see |
ylab |
A title for the y axis: see |
ask |
Logical; if |
pointsCol |
The color for points corresponding to rho.min and rho.1se. Default is |
ylim |
The y limits of the plot. |
xlim |
The x limits of the plot. |
col |
The color to be used for the curve. Default is |
... |
Other paramters to be passed through to plotting functions. |
Plots are produced, and nothing is returned.
geneJAM
N <- 500 q <- 10 set.seed(1) x <- matrix(sample(0:2, N*q, replace=TRUE), nrow=N, ncol=q) B <- matrix(0, nrow = q, ncol = q) B[1, 1:2] <- 10 y <- x %*% B + matrix(rnorm(N*q), nrow = N, ncol = q) ### pc <- geneJAM(x, y) plot(pc, 1) plot(pc, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.