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
draw.gam() should set widths = 1 #190
Comments
I'm not sure if this is related or not, but will share in case it is helpful... I have consistently been having issues when plotting factor-grouped* 2D smooths via gratia::draw(). I was (& remain) unsure of if this was on Figured i should share in case it were related here or others are seeking solution for this as well.... ### Before...
### After...
PS major thanks for all that you do! edit* : neglected to mention this was only an issue for 2D smooths grouped by factor (e.g., |
@Skogur Looks like you shouldn't be using |
Good catch! -___- this must be why taking breaks is important... |
The default behaviour in patchwork when aligning patches of plots where one or more has a fixed/equal coordinate system is not desirable for
draw.gam()
and related plotting functions as it reduces the widths of the columns to align the axes. In these situations we don't want to align the axes as we are specifically trying to preserve the aspect ratio for select plots.The fix in this situation seems to be to set the
widths
argument such that all patches are the same size. See https://patchwork.data-imaginist.com/articles/guides/layout.html#fixed-aspect-plotsThe text was updated successfully, but these errors were encountered: