Hey!
I´m trying to visualize some of my data wich I collected from a survey using a likert-scale. For that I´d like to use a Histogram or Barplot to see how often which option got chosen.
ggplot(data = umfrage_ba, aes(x=v_58)) +
geom_histogram(binwidth = 0.5, color = "white", fill = "steelblue") +
labs(x = "Relevanz", y = "Häufigkeit") +
ggtitle("Histogramm für den akzeptieren Button") +
theme(plot.title = element_text(hjust = 0.5))
another attempt:
hist(umfrage_ba$v_58, col="steelblue", labels = TRUE,ylim = c (0, 50),
breaks = c(0.5,1.5,2.5,3.5,4.5,5.5), xlim = c(0,6), main = "Boxplott des akzeptieren Buttons",
xlab = "Relevanz", ylab = "Anzahl")
I´d like to swap the 1 - 5 with the actually names of the values. From not very important to very important. Is there an easy way to do so? Also I´d like to show the absolute numbers of each value, for example 1 got clicked 48 times.