Mplot {simone}R Documentation

Graphics representation of a matrix

Description

Display the image of a matrix which may be rearranged according to an optional node classification vector.

Usage

  Mplot(A = NULL, cl = NULL, ...)

Arguments

A The matrix to display. If NULL, only the color legend is displayed.
cl Node classification vector. Default NULL.
... See details section.

Details

Parameters can be specified in the call to Mplot to change the color palette, the axis labels, and general parameters.

Value

No value is returned.

Author(s)

G. Grasseau, A. Smith, C. Ambroise

See Also

Gplot, image

Examples

  library(simone)

  # Simulate a data set with obvious structure
  p <- 200
  n <- 1 
  proba.in  <- 0.2
  proba.out <- 0.01
  alpha <- c(.5,.3,.2)
  X <- SimDataAffiliation (p, n, proba.in, proba.out, alpha)

  # Create four pictures
  par(mfrow=c(2,2))
  Gplot(X$K.theo, X$cl.theo, main="Affiliation graph")
  Mplot(X$K.theo, main="Adjacency matrix", colors="light.64")
  Mplot(X$K.theo, X$cl.theo, lab.display=FALSE, main="Ordered matrix")
  Mplot(color.legend=TRUE)

[Package simone version 0.1-2 Index]