PMassicotte / gtrendsR

R functions to perform and display Google Trends queries
352 stars 112 forks source link

gtrendsR returning different data when compared to Google Trends website #427

Open henriquefpires opened 1 year ago

henriquefpires commented 1 year ago

Hello,

Yesterday I realized that when I tried to download a specific term in Brazil I was getting a very weird time series (a lot of small numbers followed by occasional very high numbers). Does anyone know what am I doing wrong?

Thanks in advance!

gtrends <- gtrendsR::gtrends(keyword = 'bar', time = "2013-02-03 2017-02-03", geo = "BR", category = 0)

hits = gtrends$interest_over_time %>% dplyr::select("date", "hits")

PMassicotte commented 1 year ago

I do not see a lot of small numbers. Can you elaborate?

library(gtrendsR)

plot(
  gtrends <- gtrendsR::gtrends(
    keyword = "bar",
    time = "2013-02-03 2017-02-03",
    geo = "BR",
    category = 0
  )
)

Created on 2022-08-10 by the reprex package (v2.0.1)