I am trying to plot a bargraph of a particular range of datapoints by setting the x-axis limits with scale\_x\_date but I find that this excludes the boundary of the limits vector.

Example below

```
df = data.frame(
  date = as.Date(c("2021-10-10","2021-10-11","2021-10-12","2021-10-13",
           "2021-10-14","2021-10-15","2021-10-16",
           "2021-10-17","2021-10-18","2021-10-19")),
  count = c(1,2,3,4,1,2,2,1,2,3)
)

a = ggplot(df, aes(x=date, y=count)) +
  geom_bar(stat="identity", colour="black", fill="steelblue") +
  scale_x_date(limits = c(df$date[5], df$date[10]))

a

```

I am trying to display the data from date 5 to date 10 but this cuts off the data for date 5 and date 10.

How should I set the limits to include the boundaries?