I'm trying this code:
crowdfund_tweets_clean %>%
top_n(15) %>%
mutate(word = reorder(word, n)) %>%
ggplot(aes(x = word, y = n)) +
geom_col() +
xlab(NULL) +
coord_flip() +
labs(x = "Count",
y = "Unique words",
title = "Count of Unique Words found in Tweets")
And getting the following error:
Error: Problem with
mutate()
columnword
. iword = reorder(word, n)
. x arguments must have same length
What am I doing wrong?