gramm icon indicating copy to clipboard operation
gramm copied to clipboard

Reordering x-values in stat_summary

Open PierreP92 opened this issue 4 years ago • 1 comments

Hi Pierre,

the default behaviour of stat_summary('geom','line') is to link points according to ascending values of x. Sorry if this is a silly question but is there an easy way to link them according to a third variable instead?

Thanks a lot, Pierre

PierreP92 avatar Mar 27 '20 17:03 PierreP92

Hi homonym @PierreP92 ,

Thanks for the feedback. You can reorder the x axis if it's categorical, but it doesn't seem to be what you have in mind ! You want the ability to have a line that loops back on itself (i.e. something that stops being a function anymore), is that right ? That is a good suggestion, but a very big one! For now I would suggest to use the function to generate the error bars with points, and then link them with a line in the order you want "by hand"... Kind of related to #72

piermorel avatar May 07 '20 16:05 piermorel