Boxplot with time on x axis

7 views (last 30 days)
Craig Cowled
Craig Cowled on 27 Feb 2013
Does anybody know how to obtain a boxplot with time on the x axis?
I have collected experimental observations at irregular intervals over a period of time and would like my boxplot to have a linear time axis, however, the boxplot displays my results as 12 equally spaced boxplots. This wrongly implies that the observations were taken at regular intervals.
My y-data (observations) is in a matrix of 1836 rows and 12 columns (much of the data is blank, i.e., NaN). Each of the columns represents data collected at a different time and has been recorded in a vector of length 12.
Ideas?

Accepted Answer

Craig Cowled
Craig Cowled on 27 Feb 2013
Found the answer ...
Need to use 'positions' like this
boxplot(Y,'positions',X)

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!