Skip to contents

plot heatmap of NA values

Usage

plot_na_heatmap(
  matrix,
  annotation,
  factor_keys,
  sample_name,
  limitrows = 10000,
  distance = "binary"
)

Arguments

matrix

numeric matrix — wide-format intensity data

annotation

data.frame — sample annotation

factor_keys

character vector — factor column names for annotation

sample_name

character — sample name column

limitrows

max rows to display

distance

distance method for clustering

Examples


istar <- sim_lfq_data_peptide_config()
#> creating sampleName from file_name column
#> completing cases
#> completing cases done
#> setup done
lfq <- LFQData$new(istar$data, istar$config)
wide <- lfq$data_wide(as.matrix = TRUE)
tmp <- plot_na_heatmap(wide$data, wide$annotation, lfq$factor_keys(), lfq$sample_name())
#> rows with NA's: 16; all rows :28
stopifnot(class(tmp) == "pheatmap")