Skip to content

Feature request: axis.ticks argument in facet_wrap and facet_grid #5689

Closed
@davidhodge931

Description

@davidhodge931

In the example below, I'd like to be able to add a axis.ticks argument to remove the non-margin axis ticks but keep the non-margin axis lines

library(tidyverse)
diamonds |>
  ggplot() +
  geom_bar(aes(y = cut), width = 0.75, fill = "steelblue") +
  facet_wrap(~color, axes = "all_y", axis.labels = "margins") +
  theme(axis.line = element_line(colour = "black")) +
  theme(axis.line.x = element_blank()) +
  theme(axis.ticks.x = element_blank())

Created on 2024-02-11 with reprex v2.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions