Skip to content

Allow setting just one of the limits of scale #557

Closed
@wch

Description

@wch

It would be handy to be able to set just the lower or upper limit of a scale. For example, when making a line graph, you might just want to set the lower y limit to 0, but let ggplot automatically calculate the upper bound.

# Lower y value on plot is 8
ggplot(BOD, aes(Time, demand)) + geom_line()

# Something like this would be useful
ggplot(BOD, aes(Time, demand)) + geom_line() + ylim(0,NULL)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions