Skip to content

Remove redundant x/y-axis in facets #661

Description

@strengejacke

Not sure if this is beyond the package's scope, but it would be great if tinyplot could remove redundant x- and y-axes in facets. See example below, where we only need the "outer" axes. Or can this (easily?) be done manually with base R graphics tweaks?

library(modelbased)
library(tinyplot)
data(efc, package = "modelbased")
m <- lm(neg_c_7 ~ c172code * e42dep, data = efc)

op <- tpar(
  bty = "n", # No box (frame) around the plot
  grid = TRUE, # Add a background grid
  las = 1, # Horizontal axis tick labels
  pch = 16 # Filled points as default
)

estimate_means(m, c("c172code", "e42dep")) |> plt(facet = ~e42dep, dodge = 0)

Created on 2026-07-06 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