Learn R Programming

DataVisualizations (version 1.1.12)

Pixelmatrix: Plot of a Pixel Matrix

Description

Plots Data matrix as a pixel coulour image.

Usage

Pixelmatrix(Data, XNames, LowLim, HiLim,

YNames, main = '',FillNotFiniteWithHighestValue=FALSE)

Arguments

Data

[1:n,1:d] Data cases in rows (n), variables in columns (d)

LowLim

Optional: limits for the color axis

HiLim

Optional: limits for the color axis

XNames

Optional: Vector - names for the X-ticks, NULL: no ticks at all

YNames

Optional: Vector - names for the Y-ticks, NULL: no ticks at all

main

Optinal: String - Title of the plot

FillNotFiniteWithHighestValue

Optinal, Default FALSE = Non finite values are shown in black, TRUE=non finite values are transformed to a value higher than the highest value and shown in this color

Details

Low values are shown in blue and green, middle values in yellow and high values in orange and red.

Examples

Run this code
# NOT RUN {
data("Lsun3D")
Data=Lsun3D$Data
# }
# NOT RUN {
Pixelmatrix(Data)
# }

Run the code above in your browser using DataLab