Skip to content

Request: support theme axis.ticks.length.x and axis.ticks.length.y #1319

Closed
@daattali

Description

@daattali

I'm wondering if there is a deliberate reason why axis.ticks.length exists but you can't customize it for the X and Y axes?

If I want to have long tickmarks on the Y axis but very short ones on the X, it feels like this should be possible.

ggplot(mtcars, aes(wt, mpg)) + geom_point() +
  theme(axis.ticks.length.x = unit(2, "cm"), axis.ticks.length.y = unit(2, "mm"))

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