fortify_data_frame.matrix {ggalign}R Documentation

Build a data frame

Description

[Stable]

This function converts various objects to a data frame.

Usage

## S3 method for class 'matrix'
fortify_data_frame(data, lvls = NULL, ..., data_arg = NULL, call = NULL)

## S3 method for class 'DelayedMatrix'
fortify_data_frame(data, ...)

## S3 method for class 'Matrix'
fortify_data_frame(data, ...)

Arguments

data

A matrix-like object.

lvls

A logical value indicating whether to restore factor levels using those stored in ggalign_lvls(), or a character vector specifying custom levels for the value column. If levels are provided or restored, the value column will be returned as a factor.

...

These dots are for future extensions and must be empty.

data_arg

The argument name for data. Developers can use it to improve messages. Not used by the user.

call

The execution environment where data and other arguments for the method are collected. Developers can use it to improve messages. Not used by the user.

Value

Matrix will be transformed into a long-form data frame, where each row represents a unique combination of matrix indices and their corresponding values. The resulting data frame will contain the following columns:

See Also

Other fortify_data_frame() methods: fortify_data_frame.character(), fortify_data_frame.default(), fortify_data_frame.dendrogram(), fortify_data_frame.phylo()


[Package ggalign version 1.0.2 Index]