library(ggplot2)
words <- c("unto", "said", "thou", "thy", "thee", "shall", "god", "lord", "will", "land",
"came", "father", "jacob", "sons", "son", "upon", "joseph", "earth", "abraham", "behold")
freq <- c(598, 478, 284, 279, 268, 259, 230, 206, 195, 187, 176, 169, 166, 158, 148, 141, 138, 121, 121, 118)
df_words <- data.frame(word = words, freq = freq)
head(df_words)
library(dplyr)
order <- arrange(df_words, freq)$word
ggplot(data = df_words, aes( x = word ,y = freq)) +
ylim(0, 600) +
geom_col() +
coord_flip() +
scale_x_discrete(limit = order) +
geom_text(aes(label = freq), hjust = -0.1)