Not to sure why the X-Axis intervals are going up in 2, i need them to be going up by 1. Easy fix id assume

library(ggplot2)
ggplot(diet,aes(x=Breakfast,fill=Employment))+
geom_bar(stat="count")+
labs(title = "Breakfast Habits vs Employment Status")+
labs(y= "Frequency", x = "Number of days per week breakfast is consumed")

You want to use the "breaks" argument of a "scales" function:

library(tidyverse)

plt <- tibble(x = 1:10,
       y = 1:10) |> 
  ggplot(aes(x,y)) +
  geom_col()

plt

plt + scale_x_continuous(breaks = 1:10)

Created on 2022-03-14 by the reprex package (v2.0.1)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.