This assigns colors based on frequency to the words in the transcript.
Usage
collocation_plot(
frequency_doc,
n_scenario = 1,
colors = c("#f251fc", "#f8ff1b")
)Arguments
- frequency_doc
document of frequencies (returned from
collocation_frequency())- n_scenario
number of scenarios for which this transcript appeared. Defualt is 1
- colors
list for color specification for the gradient. Default is c("#f251fc","#f8ff1b")
Examples
# Identify Source Row
src_row <- which(notepad_example$ID=="source")
merged_frequency <- collocation_frequency(notepad_example, src_row, "Text")
# Create a plot object to assign colors based on frequency
freq_plot <- collocation_plot(merged_frequency)
