我尝试了gtrendsR,我发现它非常有用。但我不知道如何进行和/或查询。 例如,使用以下语法:
library(gtrendsR)
library("ggthemes")
gconnect(usr = "myaddress", psw = "mypassword", verbose = TRUE)
dp2 <- gtrends(c("Petronas", "Castrol", "Fuchs"), geo = c("IT") , start_date = "2013-06-17", end_date = "2016-03-17")
plot(dp2) + ggplot2::ggtitle("Castrol vs Fuchs vs Petronas in Italy") +
scale_colour_solarized("blue") +
theme_fivethirtyeight() + geom_line(size = 1)
......我怎样才能搜索Petronas和/或Selenia(它们是同一品牌的润滑剂),而不是#34; Petronas Towers&#34; (不相关)?在谷歌趋势中,我会写#34; Petronas&#34; +&#34; Selenia&#34; - &#34; Petronas Towers&#34;。是否也可以在gtrendsR?
感谢