Learn R Programming

ggcorrheatmap (version 0.1.2)

prepare_annotation: Prepare annotation parameters and positions

Description

Prepare annotation parameters and positions

Usage

prepare_annotation(
  annot_df,
  annot_defaults,
  annot_params,
  annot_side,
  context = c("rows", "cols"),
  annot_names_size,
  annot_name_params,
  annot_names_side,
  data_size
)

Value

List with updated annotation parameters, calculated annotation positions, and updated annotation label parameters.

Arguments

annot_df

Annotation data frame. Should contain the rownames or a column called '.names' with names, other columns are used for annotation

annot_defaults

Default parameters for annotation.

annot_params

Provided annotation parameters to update.

annot_side

String for annotation side.

context

String stating the context ("rows" or "cols").

annot_names_size

Size of annotation names.

annot_name_params

Annotation label (names next to annotations) parameters to update.

annot_names_side

Annotation label side.

data_size

Size of data (ncol if row annotations, nrow if column annotations).