Learn R Programming

grobblR (version 0.2.1)

aes_matrix: 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)

Value

A matrix based on the dimensions of df and value.

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.