-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error in theme[[element]]: "Attempt to select more than one element in vectorIndex" when using guides = "collect" #404
Comments
I have the same issue with patchwork 1.3.0 |
I'm currently using this quick fix:
Run this before running |
Bless you kind stranger, I was having the same issue with patchwork in a different context and this worked perfectly. |
I was having the same issue, now the |
Hi,
First thank you for developing such a fantastic package! I've enjoyed working with it, but I've encountered an issue in the latest version (v1.3.0) of patchwork when using guides = "collect".
Here's the code to replicate the bug:
Upon examining the code, the issue might be related to the
guides_build
function around lines 67–68:patchwork/R/guides.R
Lines 67 to 69 in 2695a9f
It seems that while retrieving elements
legend.spacing.x
andlegend.spacing.y
withcalc_element()
, the arguments might be passed in the wrong order. For example,calc_element(theme, "legend.spacing.x")
might need to be revised tocalc_element("legend.spacing.x", theme)
, similar to the function call on line 98.Would you please look into this? Thanks in advance for any helps!
The text was updated successfully, but these errors were encountered: