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

Feature request @facet_grid and @facet_wrap #21

Closed
dpabon opened this issue Aug 22, 2023 · 2 comments
Closed

Feature request @facet_grid and @facet_wrap #21

dpabon opened this issue Aug 22, 2023 · 2 comments

Comments

@dpabon
Copy link

dpabon commented Aug 22, 2023

Hi,

Thanks for the wonderful work with the package! I wondered if you have plans to include facets functionality.

Cheers,
Daniel

@kdpsingh kdpsingh changed the title Feature request @facet_grip and @facet_wrap Feature request @facet_grid and @facet_wrap Aug 22, 2023
@rdboyes
Copy link
Member

rdboyes commented Aug 23, 2023

I do - they're a little trickier to implement than you might think at first glance, but I plan to implement them eventually. If anyone wants to give this a go, the equivalent AoG functionality is through a mapping() layer with row and col kwargs

@rdboyes
Copy link
Member

rdboyes commented Sep 24, 2023

Initial implementation of this feature is complete!

@ggplot(penguins) + 
    @geom_point(aes(x = bill_length_mm,
                    y = bill_depth_mm)) +
    @facet_grid(rows = species, cols = island)

download

@ggplot(penguins) +
    @geom_point(aes(x = bill_length_mm,
                    y = bill_depth_mm)) +
    @facet_wrap(species)

download

@rdboyes rdboyes closed this as completed Sep 24, 2023
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

No branches or pull requests

2 participants