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

facet_grid or wrap #22

Open
geohardtke opened this issue Oct 18, 2024 · 1 comment
Open

facet_grid or wrap #22

geohardtke opened this issue Oct 18, 2024 · 1 comment

Comments

@geohardtke
Copy link

Hi,
Nice crate! I've been using plotly in rust for some time and yes, reducing boilerplate code is welcome!
I was wondering if you had plans to add the option of creating multiple subplots like ggplot does. Something like:
ScatterPlot::builder()
.data(&dataset)
.x("body_mass_g")
.y("flipper_length_mm")
.group("species")
.size(10)
.opacity(0.5)
.plot_title("Penguin Flipper Length vs Body Mass")
.x_title("Body Mass (g)")
.y_title("Flipper Length (mm)")
.legend_title("Species")
.facet_wrap("Species")
.build()
.plot();

should produce 3 subplots.

@alceal
Copy link
Owner

alceal commented Oct 18, 2024

Thank you! I’m a big fan of ggplot, and that feature is indeed on my to-do list. However, it won’t be implemented anytime soon.

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