You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the x aesthetic has a natural order (e.g., is simply a number), the data should be sorted by that order before taking the moving average in my opinion. This does not happen. See examples below.
The only difference between the first figure and the second is the order of lines (in the second one rows are lexicographically ordered instead of numerically). We get a completely wrong picture with the second one. It's computing the moving average for unordered data but it of course will be drawn with correct (numerical) ordering on the x axis. So moving average does not correspond to the x-axis correctly. geom_ma should reorder values based on x before computing averages.
The text was updated successfully, but these errors were encountered:
If the x aesthetic has a natural order (e.g., is simply a number), the data should be sorted by that order before taking the moving average in my opinion. This does not happen. See examples below.
The only difference between the first figure and the second is the order of lines (in the second one rows are lexicographically ordered instead of numerically). We get a completely wrong picture with the second one. It's computing the moving average for unordered data but it of course will be drawn with correct (numerical) ordering on the x axis. So moving average does not correspond to the x-axis correctly. geom_ma should reorder values based on
x
before computing averages.The text was updated successfully, but these errors were encountered: