Learn R Programming

ggalign (version 0.0.5)

fortify_matrix.MAF: Build a Matrix

Description

By default, it calls as.matrix() to build a matrix.

Usage

# S3 method for MAF
fortify_matrix(
  data,
  ...,
  genes = NULL,
  n_top = NULL,
  remove_empty_samples = TRUE,
  collapse_vars = FALSE
)

Value

A matrix.

Arguments

data

An object to be converted to a matrix.

...

Not used currently.

genes

An atomic character defines the genes to draw.

n_top

A single number indicates how many top genes to be drawn.

remove_empty_samples

A single boolean value indicating whether to drop samples without any genomic alterations.

collapse_vars

A single boolean value indicating whether to collapse multiple alterations in the same sample and gene into a single value "Multi_Hit".

ggalign attributes

  • gene_anno: gene summary informations

  • sample_anno: sample summary informations

  • n_genes: Total of genes

  • n_samples: Total of samples

  • breaks: factor levels of Variant_Classification, if collapse_vars = TRUE, "Multi_Hit" will be added in the end.

See Also

Other fortify_matrix methods: fortify_matrix.default()