A graph with unnecessary start and end points

This graph is basically all right, but I don't think it is necessary to have that starting point zero in it. In this graph, for example, it is only the hours from 10 to 13 that I want to visualize. So, should I fix the x-axis so that the limits would be 10 and 13, or is there another approach that I should use?

The code

 df %>%
  filter(Time !="-") %>% 
  separate(Time, c("hour", "minutes"), sep = ":", convert = TRUE) %>% 
  filter(between(hour, 10, 13)) %>% 
  ggplot() +
  aes(hour) +
  geom_freqpoly(binwidth = 1)

Data

structure(list(Date = c("9.7.2014", "17.9.2015", "25.10.2014", 
"15.8.2013", "30.9.2018", "12.1.2014", "9.11.2012", "22.12.2017", 
"22.1.2015", "14.12.2015", "22.5.2019", "31.12.2016", "28.8.2014", 
"21.7.2019", "1.8.2016", "21.7.2013", "18.1.2020", "7.9.2014", 
"9.8.2018", "20.2.2015", "30.4.2015", "9.9.2016", "21.1.2016", 
"11.11.2012", "12.9.2014", "25.5.2012", "12.4.2015", "4.1.2017", 
"28.4.2018", "19.8.2018", "9.12.2014", "13.5.2016", "17.3.2016", 
"25.12.2018", "9.7.2016", "28.5.2013", "14.10.2018", "11.2.2013", 
"26.11.2016", "25.2.2015", "16.5.2017", "11.12.2017", "6.3.2019", 
"18.10.2019", "21.9.2019", "16.2.2019", "29.12.2019", "1.5.2019", 
"6.10.2017", "23.10.2018", "18.7.2015", "14.2.2017", "4.3.2016", 
"1.1.2017", "4.1.2013", "6.4.2016", "30.9.2016", "22.9.2016", 
"26.10.2015", "16.10.2016", "11.11.2016", "27.9.2019", "26.9.2019", 
"31.10.2014", "13.8.2019", "2.10.2014", "27.4.2015", "10.4.2017", 
"12.2.2013", "16.2.2020", "22.10.2014", "13.1.2017", "12.4.2017", 
"22.8.2019", "30.12.2019", "29.8.2017", "21.7.2015", "10.1.2020", 
"28.8.2016", "5.12.2014", "15.10.2018", "7.7.2015", "3.10.2014", 
"2.7.2015", "19.11.2012", "5.1.2016", "23.1.2019", "14.5.2017", 
"15.8.2014", "11.1.2016", "16.4.2017", "5.11.2018", "28.5.2019", 
"13.3.2013", "16.2.2015", "19.6.2019", "30.9.2016", "13.8.2019", 
"6.8.2014", "10.9.2017"), Time = c("17:20", "16:00", "13:00", 
"10:20", "15:30", "10:30", "17:30", "14:40", "10:00", "12:30", 
"10:50", "19:30", "18:00", "14:50", "18:40", "10:00", "17:00", 
"15:30", "10:30", "17:00", "18:40", "19:30", "17:00", "14:20", 
"11:40", "08:00", "12:20", "10:00", "10:00", "13:10", "13:20", 
"16:20", "08:30", "11:50", "10:30", "20:30", "13:00", "08:40", 
"14:30", "16:00", "12:20", "16:30", "15:00", "11:40", "11:30", 
"13:10", "08:20", "09:40", "19:20", "17:30", "12:40", "17:00", 
"13:20", "16:50", "20:10", "13:00", "13:20", "10:10", "11:40", 
"09:00", "12:30", "08:10", "13:00", "09:50", "10:00", "08:30", 
"18:10", "18:00", "11:30", "19:00", "18:40", "11:50", "08:50", 
"17:20", "15:00", "16:00", "09:40", "10:30", "07:00", "17:00", 

Use this:

This topic was automatically closed 7 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.