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
When using facets, position guides are trained for every panel and drawn for every row/column. This seems excessive to me.
In the code below, we can count how often a guide is trained and drawn by using the following modification. I hasten to note that this doesn't reflect the intended syntax of extending guides, but it is a quick and dirty hack.
Surely, we only need to train or draw* an x-axis just once in the plot above, since all panels share the same scales.
* build the grob once, then re-use for every column (not literally drawing just 1 axis).
Unless there is a very good reason to build more guides than needed, I suppose we could make this more efficient.
The text was updated successfully, but these errors were encountered:
When using facets, position guides are trained for every panel and drawn for every row/column. This seems excessive to me.
In the code below, we can count how often a guide is trained and drawn by using the following modification. I hasten to note that this doesn't reflect the intended syntax of extending guides, but it is a quick and dirty hack.
Created on 2023-09-18 with reprex v2.0.2
Surely, we only need to train or draw* an x-axis just once in the plot above, since all panels share the same scales.
* build the grob once, then re-use for every column (not literally drawing just 1 axis).
Unless there is a very good reason to build more guides than needed, I suppose we could make this more efficient.
The text was updated successfully, but these errors were encountered: