
Plot Term Frequency Trends by Continuous Variable
Source:R/lexical_analysis.R
plot_term_trends_continuous.RdCreates a faceted line plot showing how term frequencies vary across a continuous variable (e.g., year, time period).
Usage
plot_term_trends_continuous(
term_data,
continuous_var,
terms = NULL,
title = NULL,
height = 600,
width = NULL
)Arguments
- term_data
Data frame containing term frequencies with columns: continuous_var, term, and word_frequency
- continuous_var
Name of the continuous variable column
- terms
Character vector of terms to display (optional, filters if provided)
- title
Plot title (default: NULL, auto-generated)
- height
Plot height in pixels (default: 600)
- width
Plot width in pixels (default: NULL, auto)
See also
Other visualization:
apply_standard_plotly_layout(),
create_empty_plot_message(),
create_message_table(),
create_standard_ggplot_theme(),
get_dt_options(),
get_plotly_hover_config(),
get_sentiment_color(),
get_sentiment_colors(),
plot_cluster_terms(),
plot_cross_category_heatmap(),
plot_entity_frequencies(),
plot_mwe_frequency(),
plot_ngram_frequency(),
plot_pos_frequencies(),
plot_semantic_viz(),
plot_similarity_heatmap(),
plot_word_frequency()