Applies consistent layout styling to plotly plots following TextAnalysisR design standards. This ensures all plots have uniform fonts, colors, margins, and interactive features.
Usage
apply_standard_plotly_layout(
plot,
title = NULL,
xaxis_title = NULL,
yaxis_title = NULL,
margin = list(t = 60, b = 80, l = 80, r = 40),
show_legend = FALSE
)Details
Design standards applied:
Title: 18px Roboto, #0c1f4a
Axis titles: 16px Roboto, #0c1f4a
Axis tick labels: 16px Roboto, #3B3B3B
Hover tooltips: 16px Roboto
WCAG AA compliant colors
See also
Other visualization:
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_lexical_dispersion(),
plot_log_odds_ratio(),
plot_mwe_frequency(),
plot_ngram_frequency(),
plot_pos_frequencies(),
plot_semantic_viz(),
plot_similarity_heatmap(),
plot_term_trends_continuous(),
plot_weighted_log_odds(),
plot_word_frequency()
