Learn R Programming

simone (version 0.1-3)

Mplot: 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.

Value

  • No value is returned.

Details

Parameters can be specified in the call to Mplot to change the color palette, the axis labels, and general parameters.
  • Palette parameters[object Object],[object Object],[object Object]
  • Label parametersValues of the axis labels are set to the row and column matrixdimnamesor indexes. Other parameters are:[object Object],[object Object]
  • Other parameters:[object Object],[object Object],[object Object],[object Object],[object Object]

See Also

Gplot, image

Examples

Run this code
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)

Run the code above in your browser using DataLab