【发布时间】:2021-02-13 00:10:03
【问题描述】:
我正在尝试更改 Sentimentr package 使用的 plot() 函数中红点的颜色。我认为 plot() 返回一个 ggplot2 对象,但是当我尝试向 plot() 函数添加参数时(例如,color = 'blue' 或 fill = 'blue'),没有任何变化。任何帮助表示赞赏!下面的可重现示例。
library(sentimentr)
library(magrittr)
library(dplyr)
out <- presidential_debates_2012 %>%
get_sentences() %$%
sentiment_by(dialogue, list(person))
plot(out)
【问题讨论】:
标签: r sentimentr