| plotContour | R Documentation |
Draw a contour plot of latent node positions. Uses colorblind-friendly viridis palette by default.
plotContour(OUT, main = "", k = 8, my.cols = viridis::viridis(k))
OUT |
Output of networkchange objects. |
main |
The title of plot |
k |
The number of levels (nlevels in contour ()). |
my.cols |
Color scale. Defaults to viridis palette. Can also use brewer.pal() from RColorBrewer. |
A plot object
## Not run: set.seed(1973)
\## generate an array with two constant blocks
Y <- MakeBlockNetworkChange(n=10, shape=10, T=40, type ="constant")
out0 <- NetworkStatic(Y, R=2, mcmc=10, burnin=10,
verbose=10, UL.Normal = "Orthonormal")
\## contour plot of latent node positions
plotContour(out0)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.