Description Usage Arguments Value Examples
Simulation Plot with ggplot: The true beta, relevant component and eigen structure
1 2 3 4 5 6 7 8 |
obj |
A simrel object |
ncomp |
Number of components to plot |
which |
A character indicating which plot you want as output, it can take |
layout |
A layout matrix of how to layout multiple plots |
print.cov |
Output estimated covariance structure |
use_population |
Logical, TRUE if population values should be used and FALSE if sample values should be used |
A list of plots
1 2 3 4 5 6 7 8 9 10 11 12 | sim.obj <- simrel(n = 100, p = 16, q = c(3, 4, 5),
relpos = list(c(1, 2), c(3, 4), c(5, 7)), m = 5,
ypos = list(c(1, 4), 2, c(3, 5)), type = "multivariate",
R2 = c(0.8, 0.7, 0.9), gamma = 0.8)
ggsimrelplot(sim.obj, layout = matrix(c(2, 1, 3, 1), 2))
ggsimrelplot(sim.obj, which = c(1, 2), use_population = TRUE)
ggsimrelplot(sim.obj, which = c(1, 2), use_population = FALSE)
ggsimrelplot(sim.obj, which = c(1, 3), layout = matrix(c(1, 2), 1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.