Skip to content

asp not respected when facet.args = list(free = TRUE) #555

Description

@katrinabrock

MRE

This creates a 1x1 square with a length 10 line segment protruding to the right. asp=1 should make the square look like a square, not a rectangle. "A", "B", and "C" have identical data.

png(width = 600, height = 200, unit = "px")
tinyplot(
  y ~ x,
  facet = ~group,
  facet.args = list(free = TRUE),
  data = data.frame(
    y = rep(c(1, 1, 2, 2, 1, 1.5, 1.5), 3),
    x = rep(c(2, 1, 1, 2, 2, 2, 11), 3),
    group = c(rep("A", 7), rep("B", 7), rep("C", 7))
  ),
  type = "l",
  asp = 1
)
dev.off()

Expected behavior

Since the data is identical for each group, facet.args = list(free = TRUE) should have no impact. Different plots should be free show different ranges, but asp=1 should be preserved within each plot.

Image

Actual behavior

Image

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