Skip to contents

This function extracts data from the ggalign attribute retained in the data when rendering quad_layout()/ggheatmap() or stack_layout() object. The ggalign attribute holds supplementary information for input data.

Usage

ggalign_attr(x, field = NULL)

Arguments

x

Input data for the function used to transform the layout data.

field

A string specifying the particular data to retrieve from the ggalign attribute. If NULL, the entire ggalign attribute will be returned. Commonly, this attribute list is attached by fortify_matrix() or fortify_data_frame() functions (refer to the ggalign attributes section in the documentation for details). For examples, see fortify_matrix.MAF().

Value

The specified data from the ggalign attribute or NULL if it is unavailable.