powered by
This function plots a numeric matrix or data frame.
tilePlot( mat, title = "Tile plot", xLab = "x", yLab = "y", legendLab = "Value", sigDigits = 2, isCor = FALSE, labelSize = 3, labelColor = "black", tileBoundaryColor = "white", tileBoundaryWidth = 0.2, palette = "Spectral", reverseColors = TRUE, xAngle = 45, vJust = 0.6, ... )
An object of class gg.
gg
A numeric matrix or data frame.
Plot title.
Label of x axis.
Label of y axis.
Legend label.
Number of significant digits to be displayed for each matrix element.
Whether the matrix is a correlation matrix, in which case the limits of the color scale will be set to [-1, 1].
Label size. Ignored if labelDF is NULL.
labelDF
NULL
Label color.
Tile boundary color.
Tile boundary width.
grDevices palette used for coloring nodes. Ignored if nodeColor is not NULL.
Whether to reverse the order of colors in the palette.
Angle of x axis text.
Vertical justification in [0, 1].
Other arguments passed to centerTitle.
centerTitle
mat <- matrix(round(runif(100, 0, 1), 2), nrow=10) rownames(mat) <- paste0('R', seq(10)) colnames(mat) <- paste0('C', seq(10)) tilePlot(mat)
Run the code above in your browser using DataLab