Skip to content

Waffle generates an error when more than 8 categories are supplied #83

Description

@pumphandle

Earlier this week I had a class of 30 students generate a waffle chart as part of a homework assignment using the waffle package. None reported any issues.

In making the answer key, I found that it is no longer working (also confirmed by a delinquent student), making me think this is a brand-new issue.

In the minimal example below, only the first works - there seems to be a cap of 8 categories, unless colors are specified as in the 4th case.

library(waffle)

parts <- c(1:8)
waffle(parts, rows=8)

parts <- c(1:9)
waffle(parts, rows=8)

parts <- c(1:10)
waffle(parts, rows=8)

parts <- c(1:10)
waffle(parts, rows=8, colors=c(1:10))

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions