Skip to content
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

Tile layout improvement: makes parts contiguous #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

edwindj
Copy link

@edwindj edwindj commented Aug 21, 2019

Thanks for this package!

I ran into a layout issue with a data set of mine which is shown in the following example:

parts <- tapply(iris$Sepal.Length, iris$Species, mean)
waffle(parts, rows = 7)

which results in:

waffle

I provided a fix by sorting the even rows of the expanded grid in the opposite direction of the odd rows. ("snake_sort"?), resulting in contiguous parts:

waffle2

I suppose this is related to issue #32.

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.

None yet

1 participant