Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reordering x-values in stat_summary #96

Open
PierreP92 opened this issue Mar 27, 2020 · 1 comment
Open

Reordering x-values in stat_summary #96

PierreP92 opened this issue Mar 27, 2020 · 1 comment

Comments

@PierreP92
Copy link

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

@piermorel
Copy link
Owner

piermorel commented May 7, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants