How to make a timeseries boxplot in R

前端 未结 3 900
忘掉有多难
忘掉有多难 2020-12-03 06:08

I\'m trying to make a time series boxplot using ggplot2.

I have montly values for many individuals.

I need to make a timeseries boxplot by month

3条回答
  •  無奈伤痛
    2020-12-03 06:40

    Another way to do this without having to change to date format and do any sorting etc. is to simply add the date as a grouping factor like so:

    ggplot(mydata) + geom_boxplot(aes(x = date, y = measure, group = date))

提交回复
热议问题