My dataset includes a date indicator in the ISO Week format (202148, 202149 etc.). Unfortunately, ggplot does not recognize this indicator as a date class, which leads to a break in the plot. [Plot with time break][1]
How can I convert it to the date class? I already tried the following:
data$date <- as.Date(data$date)```
[1]: https://i.stack.imgur.com/xlyQx.png