powered by
Pixel-oriented visualization of a numeric matrix or data.frame.
plot_pixel( data, colors = NULL, title = NULL, label_x = "sample", label_y = "Attributes" )
returns a ggplot2::ggplot graphic
numeric matrix or data.frame
optional vector of colors for the fill gradient
optional plot title
x-axis label
y-axis label
Renders a heatmap-like plot where each cell is a pixel. Useful for multivariate inspection.
data(iris) grf <- plot_pixel(as.matrix(iris[,1:4]), title = "Iris") plot(grf)
Run the code above in your browser using DataLab