plotDataMatrix {arrayMagic}R Documentation

Visualisation of a data matrix, e.g. a matrix of distance or similarity scores

Description

Visualisation of a data matrix, e.g. a matrix of distance or similarity scores

Arguments

dataMatrix data matrix, type matrix
labelMatrix matrix of labels of type array of dim(dataMatrix)
title plot title, type character string
labels vector of names corresponding to a quadratic dataMatrix
xLabels vector of names corresponding to the columns of dataMatrix overrides labels
yLabels vector of names corresponding to the rows of dataMatrix overrides labels
axesLabel label for x and y axes
xAxisLabel label for x axis overrides axesLabel
yAxisLabel label for y axis overrides axesLabel
colourRamp vector of colours
minimum numeric, predefined minimum value, default missing
maximum numeric, predefined maximum value, default missing
width graphics window width
height graphics window height
labelMatrixTextScaling numeric, default: 0.7
plotOutput character string specifying either "screen" or "pdf"; default: "screen"
fileName character string specifying the file path and file name

Details

if no labels are supplied the dimnames or alternatively a numbering is used instead

Author(s)

Andreas Buness <a.buness@dkfz.de>

Examples

plotDataMatrix(title="Similarities",dataMatrix=matrix(c(3,4,4,3),nrow=2, ncol=2),labels=c("one","two"))
ma <- matrix(c(0.3,0.01,0.7,0.1,0.5,0.3,1,0.5,01), nrow=3,ncol=3)
 plotDataMatrix(title="Similarities",dataMatrix=ma, labelMatrix=ma,labels=c("one","two", "three"), minimum=0, maximum=1)
 ma <- matrix(c(0.3, 0.01, 0.7, 0.1, 0.5, 0.3, 1, 0.5, 1, 0, 1, 0), nrow = 4, ncol = 3, byrow=TRUE )
plotDataMatrix(title = "dataMatrix", dataMatrix = ma, labelMatrix = ma, xLabels = c("one", "two", "three"), minimum = 0, maximum = 1)
 

[Package Contents]