Skip to content

Feature request: Allows the number of uniform breaks (n.breaks) to be supplied as a parameter after setting scale='free_y' in the facet_* function #6274

Closed
@Breeze-Hu

Description

@Breeze-Hu

Happy New Year!

I recently encountered a need to use facets (facet_*) to present different types of data, where the values in each facet differ significantly in order of magnitude (e.g., n * 10, n * 100, etc.). To make the y-axis labeling more appropriate, I used scale = 'free_y'.

However, I noticed that the n.breaks parameter in scale_y_continuous does not set the exact number of axis breaks as expected—it adjusts them, but not to the precise quantity specified. This inconsistency makes it challenging to maintain uniformity and clarity across all faceted plots.

Would it be possible to enhance the functionality to allow setting the exact number of axis breaks (n.breaks in facet_*) when using scale = 'free_y'? This feature would greatly improve the visual consistency and readability of faceted plots.

Best regards,
Hu

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