Skip to content

Should the RHS margin of themed plots adjust to accomodate x-axis tick labels? #492

Description

@grantmcdermott

We currently have the undesirable property that long(ish) labels can get cut off.

For example:

library(tinyplot)

mod = lm(body_mass ~ 0 + species, data = penguins)
coefs = data.frame(
  names(coef(mod)),
  coef(mod),
  confint(mod)
) |> setNames(c("term", "estimate", "lwr", "upr"))

plt(
  estimate ~ term,
  ymin = lwr, ymax = upr,
  data = coefs,
  type = "errorbar",
  theme = "clean"
)
box("outer", lty = 2)

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

Somewhat related to #479

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