plot_heatmap | R Documentation |
Create a quick heatmap visualisation of character activity by story chunks using ggplot2.
plot_heatmap(input_heatmap, cutoff = 0, title = "")
input_heatmap |
The character-by-chunk heatmap matrix produced by the
|
cutoff |
A numeric value to be used to filter the visualisation to only
include those characters who speak more than |
title |
An optional character string which can be used to add a title to the visualisation. |
A ggplot2 plot.
tfa <- movienetdata::starwars_tfa
activity_heatmap(tfa$event_list,
char_names = tfa$node_list$char_name,
n_chunks = 4) %>%
plot_heatmap(cutoff = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.