Skip to content

Update coord_flip() docs - #5150

Merged
teunbrand merged 5 commits into
tidyverse:mainfrom
teunbrand:coord_flip_docs
Mar 23, 2023
Merged

teunbrand merged 5 commits into
tidyverse:mainfrom
teunbrand:coord_flip_docs

Conversation

@teunbrand

@teunbrand teunbrand commented Jan 14, 2023 •

Copy link
Copy Markdown
Collaborator

This PR aims to fix #5130.

In brief, I tried to make it clear that swapping aesthetics is the preferred method, and tone down any description of coord_flip() being useful.

  • The description mentions easily swapping x/y aesthetics
  • Every example is preceded by the same plot using swapped aesthetics.

I was unsure what goes into a decision to supersede a function, so I defaulted to not tag it with a superseded badge.

@thomasp85

Copy link
Copy Markdown
Member

I think it would make sense to mark it as superseded - thoughts @hadley ?

@hadley

hadley commented Mar 14, 2023

Copy link
Copy Markdown
Member

Yeah, that’s fine with me.

@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.

LGTM

@teunbrand
teunbrand merged commit 152d1d5 into tidyverse:main Mar 23, 2023
@teunbrand
teunbrand deleted the coord_flip_docs branch March 23, 2023 18:26
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.

Updates to coord_flip() docs

3 participants