powered by
Plot an image of a matrix using ggplot2
plotmat(mat, color = "green", title = NULL, args = NULL)
Matrix to plot
Color scheme: "green", "red", or "wes"
optional plot title
optional additional ggplot arguments
sends image to active graphics device or outputs a ggplot object
# NOT RUN { mat = diag(1:9 - 5) plotmat(mat) # }
Run the code above in your browser using DataLab