Por favor me ajudem, quero aumentar a fonte das palavras no eixo x. como faço?
data14 <- data.frame(
w=c(“superior”,“matrícula”, “aumentou”, “plataforma”,“psicológico”),
f=c(55,45,44,6,6 ))
data14 %>%
mutate(w = fct_reorder(w,f)) %>%
ggplot( aes(x=w, y=f)) +
geom_bar(stat=“identity”, fill="#f68060",color=“pink”, alpha=.6, width=.5) +
geom_text(aes(label=f), vjust=3, color=“black”, size=7.5)+
xlab("")+
theme(legend.position = “Words”)+
labs( y = “Frequency”, title = “Top_Five do Tópico 14”, subtitle = “As cinco palavras mais frequentes”)
Athos
2
coloque axis.text.x = element_text(size = 20)
no theme()!
data14 %>%
mutate(w = fct_reorder(w,f)) %>%
ggplot( aes(x=w, y=f)) +
geom_bar(stat="identity", fill="#f68060",color="pink", alpha=.6, width=.5) +
geom_text(aes(label=f), vjust=3, color="black", size=7.5)+
xlab("")+
theme(legend.position = "Words", axis.text.x = element_text(size = 20)) +
labs( y = "Frequency", title = "Top_Five do Tópico 14", subtitle = "As cinco palavras mais frequentes")
funcionou, muito obrigada