I've made a barplot using ggplot with the code:
ggplot(data = PTC, mapping = aes(x = Genotype, fill = Smoker)) +
geom_bar(position = position_dodge()) +
ggtitle("Barplot of Genotype and Smoking Status") +
scale_fill_discrete(name = "Smoking Status",
breaks = c("N", "S"),
labels = c("Non-smoker", "Smoker")) +
scale_y_discrete("Number of Individuals") +
geom_text(aes(label =..count..), stat = "count", position = position_dodge(width = 0.9), vjust = 1.25)
This gives me the following result:
Why the plot doesn't have scales on the y-axis?