Matrix and applying a colour palette

I have designed a random matrix of numbers in a 10x10 grid
How can I now apply a colour palette to theses numbers, does anyone have the coding to do this on R studio?

#creates a numerically random matrix of numbers in a 10x10 grid

matrix(round((runif(100,0,255)),0),nrow = 10)

There are some good answers to this at the link below:
https://www.biostars.org/p/330285/

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.