R/plot_helpers.R
get_sentiment_color.Rd
Generates a color based on sentiment score using a gradient from red (negative) through gray (neutral) to green (positive).
get_sentiment_color(score)
Numeric sentiment score (typically -1 to 1)
Hex color string
get_sentiment_color(-0.8) # Red #> [1] "#A35A44" get_sentiment_color(0) # Gray #> [1] "#4BB543" get_sentiment_color(0.8) # Green #> [1] "#1CB875"