Skip to content

Tile layout improvement: makes parts contiguous#68

Open
edwindj wants to merge 1 commit intohrbrmstr:masterfrom
edwindj:master
Open

Tile layout improvement: makes parts contiguous#68
edwindj wants to merge 1 commit intohrbrmstr:masterfrom
edwindj:master

Conversation

@edwindj
Copy link
Copy Markdown

@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.

1 participant