Skip to content

Boxplots widths too narrow if x == by #195

@grantmcdermott

Description

@grantmcdermott
library(tinyplot)

tinyplot(
  Petal.Length ~ Species, iris,
  type = "boxplot"
)

tinyplot(
  Petal.Length ~ Species | Species, iris,
  type = "boxplot",
  legend = list("topleft", bty = "o")
)

The bottom boxplots should be the same width as the top ones. But they're too narrow.

I think I know why this is happening (related to a factor coercion) and should hopefully be a simple fix.

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