downsample_heatmap.Rd
Combine rows to speed up rendering of large heatmaps
downsample_heatmap(
tidy_data,
value_var,
design,
max_display_features = 1000,
verbose = TRUE
)
The data frame from a tidy_omic
object containing
ordered feature and sample primary keys defined by ordered_featureId
and ordered_sampleId.
which variable in "measurements" to use for quantification.
a list summarizing the design of the tidy dataset
aggregate and downsample distinct feature to this number to speed to up heatmap rendering.
extra reporting messages
tidy_data with rows collapsed if the number of distinct features is
greater than max_display_features