powered by
This function plots a numeric matrix or data frame.
tilePlot( mat, title = NULL, xLab = NULL, yLab = NULL, legendTitle = "Value", palette = "Spectral", reverseColors = TRUE, sigDigits = 2, isCor = FALSE, labelSize = 3, labelColor = "black", legendTextSize = 10, legendTitleSize = 10, axisTextSize = 12, axisTitleSize = 12, tileBoundaryColor = "white", tileBoundaryWidth = 0.2, xAngle = 45, vJust = 0.6, ... )
An object of class gg.
gg
A numeric matrix or data frame.
Plot title.
x axis label.
y axis label.
Legend title.
Color palette.
Whether to reverse the order of colors in the palette.
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.
Label color.
Legend text size.
Legend title size.
Axis text size.
Axis title size.
Tile boundary color.
Tile boundary width.
Angle of x axis text.
Vertical justification in [0, 1].
Additional 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