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

Description Usage Arguments Value

View source: R/matrix_utils.R

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

1
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.


grobblR documentation built on Sept. 15, 2021, 1:07 a.m.