I want to assign a igraph plot to a variable and use it later. But I found that I cannot assign it.
for instance, with the following code, p returns NULL.
How can I assign the igraph plot object?
library(igraph)
mat <- cor(mtcars)
mat[mat<0.6] <- 0
network <- graph_from_adjacency_matrix(mat, weighted=T, mode="undirected", diag=F)
p = plot(network)
p