Provides a 2D density sentiment overview using a hexplot.

hexplot_valence(
valence_df,
valence_var = ave_sentiment,
x_var = date_time,
log10_trans = FALSE,
theme = "viridis"
)

Arguments

valence_df

A dataframe containing valence scores.

valence_var

The variable which contains the valence scores.

x_var

The variable for the x-axis.

log10_trans

Logical to apply a Log 10 transformation to the x-variable.

theme

Specify colour palette for hexagon fill.

Value

Hexplot with chosen variable on x-axis, sentiment on the y-axis, coloured by frequency.

Examples

# Default colour scale
hexplot_valence(
valence_df,
valence_var = ave_sentiment,
x_var = date,
log10_trans = FALSE,
theme = "viridis"
)


# Microsoft blue colour scale
hexplot_valence(
valence_df,
valence_var = ave_sentiment,
x_var = date,
log10_trans = FALSE,
theme = "microsoft"
)
#> Scale for 'fill' is already present. Adding another scale for 'fill', which
#> will replace the existing scale.