plotContour: Contour plot of latent node positions

View source: R/plotContour.R

plotContourR Documentation

Contour plot of latent node positions

Description

Draw a contour plot of latent node positions. Uses colorblind-friendly viridis palette by default.

Usage

plotContour(OUT, main = "", k = 8, my.cols = viridis::viridis(k))

Arguments

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.

Value

A plot object

Examples


   ## 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)

NetworkChange documentation built on Jan. 21, 2026, 9:08 a.m.