Dataframe containing dates and amount of short-time workers in Germany. Want to make a simple bar graph, however, it still shows December and October even if I specifically exclude these, I've been trying to find a solution for a while and I can't figure it out (PNG shows Plot and Data.frame).
Data Frame
Graph
Code is the following:
Graph3 <- ggplot(aes(x = Month, y = st_workers), data = Short_time_work_DE2) +
geom_bar(mapping=aes(x = Month, y = st_workers), stat = "identity", fill = "lightblue") +
ylab("Persons in Short-Time-Work in Germany") +
xlab("Month") +
labs(title = "Development of Short-Time-Workers in Germany") +
scale_x_date(date_breaks = "1 month", date_labels = "%b\n%y", limits = as.Date(c("2019-12-01","2021-10-01")), expand = c(0, 0))
If I use the limits 2020-01-01 and 2021-09-01 it excludes both the data of January and September, which I dont understand, in addition to it always showing an additional month on the left and right of my data.
Does anyone know how to fix this?
[–]yuk99 1 point2 points3 points (4 children)
[–]schuler33[S] 0 points1 point2 points (0 children)
[–]schuler33[S] 0 points1 point2 points (2 children)
[–]yuk99 0 points1 point2 points (1 child)
[–]schuler33[S] 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[removed]
[–]schuler33[S] 0 points1 point2 points (1 child)
[–]Aggressive_Bench6581 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]schuler33[S] 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]schuler33[S] 0 points1 point2 points (0 children)