Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ggsave()'s docs #5351

Merged
merged 1 commit into from
Jul 22, 2023
Merged

Update ggsave()'s docs #5351

merged 1 commit into from
Jul 22, 2023

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #5341.

Briefly, the old argument description was somewhat suggestive that ggsave()'s width and height arguments should be supplied as grid::unit() objects. This PR separates the description of width/height from the unit description to be more clear about the expected input.

In addition, it was suggested in #5323 (comment) that the docs could clarify that the device may be guessed from the filename extension and that there was no example of passing device arguments through .... This is also included.

Copy link
Member

@yutannihilation yutannihilation left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@teunbrand teunbrand merged commit 1f27ffe into tidyverse:main Jul 22, 2023
9 of 10 checks passed
@teunbrand teunbrand deleted the ggsave_docs branch July 22, 2023 11:31
@teunbrand
Copy link
Collaborator Author

Thanks for the review!

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.

ggsave does not respect ggplot2::unit in width and height arguments, defaults to inches
2 participants