ggtilematrix

The goal of ggtilematrix is to produce labelled matrices for teaching and explanatory usage using ggplot2.

Installation

You can install the development version of ggtilematrix like so:

# install.packages("remotes")
# remotes::install_github("cynthiahqy/ggtilematrix")
install.packages("ggtilematrix", repos = c('https://cynthiahqy.r-universe.dev', 'https://cloud.r-project.org'))

Example

This is a basic example which shows you how to solve a common problem:

library(ggtilematrix)
library(ggplot2)
## basic example code

matrices$unnamed |>
  gg_tilematrix.matrix()
#> Warning: Removed 8 rows containing missing values or values outside the scale range
#> (`geom_text()`).