metrics_heatmap | R Documentation |
Create a heatmap of metric values by subject based on hierarchical clustering order
metrics_heatmap(
data = NULL,
metrics = NULL,
metric_cluster = 6,
clustering_method = "complete",
clustering_distance_metrics = "correlation",
clustering_distance_subjects = "correlation",
tz = ""
)
data |
DataFrame object with column names "id", "time", and "gl". |
metrics |
precalculated metric values, with first column corresponding to subject id. If 'NULL', the metrics are calculated from supplied 'data' using |
metric_cluster |
number of visual metric clusters, default value is 6 |
clustering_method |
the agglomeration method for hierarchical clustering, accepts same values as |
clustering_distance_metrics |
the distance measure for metrics clustering, accepts same values as |
clustering_distance_subjects |
the distance measure for subjects clustering, accepts same values as |
tz |
Default: "". A character string specifying the time zone to be used. System-specific (see |
A heatmap of metrics by subjects generated via pheatmap
# Using pre-calculated sd metrics only rather than default (all metrics)
mecs = sd_measures(example_data_5_subject)
metrics_heatmap(metrics = mecs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.