Skip to content

Conversation

@henryrscharf
Copy link
Contributor

When plotting multiple character/factor-valued columns of an sf object, an error occurs when requesting a key because a portion of the code intended for numeric values gets executed (classInt::classIntervals()). I added lines to convert character values to a factor, and to check for numeric values before using classIntervals(). The changes solve the issue for me.

When plotting multiple character/factor-valued columns of an `sf` object, an error occurs when requesting a key because a portion of the code intended for numeric values gets executed (`classInt::classIntervals()`). I added lines to convert character values to a factor, and to check for numeric values before using `classIntervals()`.
@edzer
Copy link
Member

edzer commented Jun 27, 2023

There's one too many ) on line 120.

Sorry about that.
@henryrscharf
Copy link
Contributor Author

Sorry about that. I removed the extra one.

@edzer edzer merged commit 4fb5bad into r-spatial:main Jul 1, 2023
@edzer
Copy link
Member

edzer commented Jul 1, 2023

Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants