Skip to contents

Produce a ggplot2 visualisation of a matrix.

Usage

plot_matrix(M)

Arguments

M

A matrix.

Value

A ggplot2 plot.

Examples

M <- matrix(1:9, nrow = 3, ncol = 3)
plot_matrix(M)


plot_matrix(nb_to_precision(sf_to_nb(mw)))
#> Error in .class1(object): object 'mw' not found