aes_matrix: Create a matrix based off the dimensions of a...

View source: R/matrix_utils.R

aes_matrixR Documentation

Create a matrix based off the dimensions of a data.frame/matrix and a single value to make up its cells. Designed to be used as an aesthetic matrix within ga_list.

Description

Create a matrix based off the dimensions of a data.frame/matrix and a single value to make up its cells. Designed to be used as an aesthetic matrix within ga_list.

Usage

aes_matrix(df, value, column_names = FALSE)

Arguments

df

A data.frame/matrix the resulting matrix will get its dimensions from.

value

The single value that will make up the cells of the resulting matrix.

column_names

A TRUE/FALSE value indicating if the resulting aesthetic matrix is intended to be used for the column names.

Value

A matrix based on the dimensions of df and value.


calvinmfloyd/grobblR documentation built on Aug. 30, 2024, 8:22 p.m.