waffle icon indicating copy to clipboard operation
waffle copied to clipboard

Tile layout improvement: makes parts contiguous

Open edwindj opened this issue 4 years ago • 0 comments

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.

edwindj avatar Aug 21 '19 12:08 edwindj