Skip to content

grid = grid() not working properly with faceted plots #193

@grantmcdermott

Description

@grantmcdermott

Specifically, it only seems to be working for the first facet. Tweaked example from the README, where we use grid = grid() instead of grid = TRUE.

library(tinyplot)
plt(
  Sepal.Length ~ Petal.Length | Sepal.Length, data = iris,
  facet = ~Species, facet.args = list(bg = "grey90"),
  pch = 19,
  main = "Faceted Species!",
  grid = grid(), # <--
  frame = FALSE
)

Created on 2024-08-04 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