I created a histogram using the following code:
ggplot(aes(as.numeric(Q30_1))) +
geom_bar(fill = "lightblue", col = "black") +
labs(x= "my variable", y= "Frequency") +
ggtitle("")
The variable scales from 1 to 10 and I want to show the frequency of each value. However, the x-axis scale only shows four values (2.5, 5, 7.5, 10).
How can I display each value (like 1,2,3,..., 10) on the x-axis?