View source: R/graphics_plot_pixel.R
| plot_pixel | R Documentation |
Pixel-oriented visualization of a numeric matrix or data.frame.
plot_pixel(
data,
colors = NULL,
title = NULL,
label_x = "sample",
label_y = "Attributes"
)
data |
numeric matrix or data.frame |
colors |
optional vector of colors for the fill gradient |
title |
optional plot title |
label_x |
x-axis label |
label_y |
y-axis label |
Renders a heatmap-like plot where each cell is a pixel. Useful for multivariate inspection.
returns a ggplot2::ggplot graphic
data(iris)
grf <- plot_pixel(as.matrix(iris[,1:4]), title = "Iris")
plot(grf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.