Skip to content

Documents scale_*_date NA behavior #6868 - #6901

Open
melissa-gaughan wants to merge 2 commits into
tidyverse:mainfrom
melissa-gaughan:na-date-min-docs
Open

melissa-gaughan wants to merge 2 commits into
tidyverse:mainfrom
melissa-gaughan:na-date-min-docs

Conversation

@melissa-gaughan

Copy link
Copy Markdown

Adds clearer documentation on how to use NA as existing minimum or maximum in limits for datetimes.

Fixes #6868

@thomasp85 thomasp85 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Can I get you to rerun documentation so that the Rd file is updated as well

Comment thread R/scale-date.R Outdated
#' output
#' @param limits One of:
#' - `NULL` to use the default scale range
#' - A numeric vector of length two providing limits of the scale.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is date-specific documentation, maybe we should change this recommendation from 'A numeric vector' to 'A date vector' or 'A date(time) vector' as well.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yeah, good call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scale_x_date does not allow NA as minimum limit

3 participants