Skip to content

Misalignment when layering on top of plots with adjusted axis breaks #493

@grantmcdermott

Description

@grantmcdermott

I don't mean w.r.t. the new dodge argument, but rather the internal axis tick adjustment that we do for some types. For example, grouped boxplots or violin plots:

library("tinyplot")

plt(
  body_mass ~ sex | species, data = penguins,
  flip = TRUE,
  type = "box",
  theme = "clean"
)
plt_add(type = "j", cex = 0.5)

Another example would be ridge plots (and, in this case, we note that there's a colour mismatch too).

plt(
  sex ~ body_mass, data = penguins,
  type = "ridge",
  theme = "ridge"
)
plt_add(type = "j", cex = 0.5)

Created on 2025-09-22 with reprex v2.1.1

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