Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uparrange strata to minimize flow overlaps #6
Comments
|
Working on this in the optimization branch, making use of the iterpc package. Some considerations:
|
|
The problem with (if necessary, introducing, and) reordering factor levels, and with exporting the function that does so, is that it impacts the behavior of any aesthetics or other features that depend on the factor levels, whether their order or their number. This is turning out to be messier than i'm comfortable with. An alternative approach is to internally construct a Failing this (implicitly passing arguments between layers), i'll develop this feature without the |
|
From your comments, I'm getting the feeling that this wasn't resolved? I'm having issues with the ordering of the stratum and posted an example here. I probably just am missing something simple but any help would be appreciated. |
|
This issue (#6) is (still, intermittently) being experimented upon in the optimization branch. I think it's unrelated to the issue you describe at the link. Indeed, strata defined using a factor variable should be arranged in order of the factor levels at any axis. I'll make this a separate issue and get to it ASAP. Thanks for raising it! |
For cases in which the strata have no intrinsic order, an option should be available to arrange the strata at each axis, perhaps even using different orders at different axes when the strata are repeated (maybe this should be allowed or not according to an additional parameter), in a way that minimizes the number of flow overlaps. The
majorsexample in the vignette is a good candidate for such an option.A heuristic algorithm should suffice, and the concept is general enough that it might already be in use somewhere. I won't have time to write one for a while, and it might be worth writing in C and calling via
Rcpp.