Learn R Programming

NetworkChange (version 0.8)

plotContour: Contour plot of latent node positions

Description

Draw a contour plot of latent node positions

Usage

plotContour(OUT, main = "", k = 8, my.cols = brewer.pal(k, "Spectral"))

Arguments

OUT

Output of networkchange objects.

main

The title of plot

k

The number of levels (nlevels in contour ()).

my.cols

Color scale. Use brewer.pal() from RColorBrewer.

Value

A plot object

Examples

Run this code
# NOT RUN {
   
# }
# 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)
   
# }

Run the code above in your browser using DataLab