Estarei catando alguns tweets para analise durante a live do Normose “Festa da democracia” com suas hashtags. Todos os dados colhidos dia 02/10/2022
#essa função abre o navegador pra autenticação
auth_setup_default()
## Using default authentication available.
## Reading auth from 'C:\Users\Tomazini\AppData\Roaming/R/config/R/rtweet/default.rds'
#tweetsDF <- readRDS(file="datTweetsBrasil.Rda")
tweets_texto <-paste(tweets$text, collapse = " ")
wordcloud(width=16, height=16,
tweets_texto, min.freq = 1, max.words = 100, width=1600, height=1600,
random.order = FALSE, rot.per = 0.35,
colors=brewer.pal(50,"Dark2"))
#pontuando os tweets
tweetsDF <- tweets$text
s<-get_nrc_sentiment(tweetsDF)
#plotando grafico com sentimentos
barplot(colSums(s), las=2, col=rainbow(10),
ylab = "Contagem", main = "Sentimentos em relação a #liveDaDemocracia")
colhidos as 18:40
#tweetsDF <- readRDS(file="datTweetsBrasil.Rda")
tweets_texto <-paste(tweets$text, collapse = " ")
wordcloud(width=16, height=16,
tweets_texto, min.freq = 1, max.words = 100, width=1600, height=1600,
random.order = FALSE, rot.per = 0.35,
colors=brewer.pal(50,"Dark2"))
#pontuando os tweets
tweetsDF <- tweets$text
s<-get_nrc_sentiment(tweetsDF)
#plotando grafico com sentimentos
barplot(colSums(s), las=2, col=rainbow(10),
ylab = "Contagem", main = "Sentimentos em relação a Calma gente")
colhidos as 18:28
#tweetsDF <- readRDS(file="datTweetsBrasil.Rda")
tweets_texto <-paste(tweets$text, collapse = " ")
wordcloud(width=16, height=16,
tweets_texto, min.freq = 1, max.words = 100, width=1600, height=1600,
random.order = FALSE, rot.per = 0.35,
colors=brewer.pal(50,"Dark2"))
#pontuando os tweets
tweetsDF <- tweets$text
s<-get_nrc_sentiment(tweetsDF)
#plotando grafico com sentimentos
barplot(colSums(s), las=2, col=rainbow(10),
ylab = "Contagem", main = "Sentimentos em relação a Luiz Inácio Lula da Silva")
colhidos as 18:40
tweets_texto <-paste(tweets$text, collapse = " ")
wordcloud(width=16, height=16,
tweets_texto, min.freq = 1, max.words = 100, width=1600, height=1600,
random.order = FALSE, rot.per = 0.35,
colors=brewer.pal(50,"Dark2"))
#pontuando os tweets
tweetsDF <- tweets$text
s<-get_nrc_sentiment(tweetsDF)
#plotando grafico com sentimentos
barplot(colSums(s), las=2, col=rainbow(10),
ylab = "Contagem", main = "Sentimentos em relação a Eleicao2022")