tile.plot | R Documentation |
This function has no dependencies outside of base R, but provides a
reasonable approximation to the functionality of
ggplot2::geom_raster
.
tile.plot(
tile_df,
col = NULL,
ncols = NULL,
main = "",
zlim = NULL,
na.color = "grey80"
)
tile_df |
A matrix or a data frame with three columns:
|
col |
A color palette |
ncols |
The number of colors for a color palette, if |
main |
Plot title (character) |
zlim |
a vector with the minimum and maximum limits for the plotted values. |
na.color |
The color that should be used to represent |
A tile plot done in base R graphics
x <- matrix(rnorm(50*50),50,50)
x_df <- melt_array(x)
tile.plot(x_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.