plot.eigcv | R Documentation |
Plot cross-validated eigenvalues
## S3 method for class 'eigcv'
plot(x, type = c("z-score", "adjacency", "laplacian"), threshold = 2, ...)
x |
An |
type |
Specifies what to plot. Must be one of the following options:
|
threshold |
Only used when |
... |
Ignored. |
A ggplot2
object.
library(fastRG)
set.seed(27)
B <- matrix(0.1, 5, 5)
diag(B) <- 0.3
model <- sbm(
n = 1000,
k = 5,
B = B,
expected_degree = 40,
poisson_edges = FALSE,
allow_self_loops = FALSE
)
A <- sample_sparse(model)
eigs<- eigcv(A, k_max = 10)
eigs
plot(eigs, type = "z-score") # default
plot(eigs, type = "adjacency")
plot(eigs, type = "laplacian")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.