gertjanssenswillen / processmapR

!! repository moved to https://github.com/bupaverse/processmapR !! This repo is read-only from now one.
Other
7 stars 9 forks source link

Sort Dotted Chart on all activities #41

Closed frkbr closed 5 years ago

frkbr commented 5 years ago

dotted_chart(x = "absolute", y = "start") or plotly_dotted_chart() work well, if the start timestamps of the cases are all different. However, sometimes many cases start at the same time, if there's some batch behaviour. For these cases, the dotted_chart() function seems to arrange the cases according to their position in the log or even in reverse order. This can produce strange graphs, such as this one (see the area marked with the red ellipse):

newplot

If several cases start at the same time, the dotted chart with the "start"-argument should arrange them according to the timestamp of the second activities in the case, then the third activities, etc. The phenomenon is particularly relevant, if the timestamps are not very granular and only consist of dates.

Or do I somehow have to prearrange the cases in the log, before using the Dotted Chart?

gertjanssenswillen commented 5 years ago

Just changed the ordering. Might also be useful for other options (start_day and start_week) but the current approach is not very generic. Will come to this later.

frkbr commented 5 years ago

Thank you! Looks good now.