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

Issue creating a horizontal beeswarm #1583

Open
Brinkhuis opened this issue May 24, 2022 · 0 comments
Open

Issue creating a horizontal beeswarm #1583

Brinkhuis opened this issue May 24, 2022 · 0 comments

Comments

@Brinkhuis
Copy link

Creating a vertical beewarm works without issues.
Creating the same plot horizontal does not seem to give the expected result.

# download data
download("https://raw.githubusercontent.com/mwaskom/seaborn-data/master/penguins.csv", "penguins.csv")

# read data
penguins = dropmissing(DataFrame(CSV.File("penguins.csv")))

# create plot
set_default_plot_size(12cm, 16cm)
plot(
    penguins, 
    x = :sex, 
    y = :body_mass_g, 
    color = :species, 
    Geom.beeswarm, 
    Scale.color_discrete_manual("#5377C9", "#DF8A56", "#82CA70"), 
    Theme(background_color = "white"),
)

Screenshot 2022-05-24 at 20 21 15

set_default_plot_size(16cm, 12cm)
plot(
    penguins, 
    x = :body_mass_g, 
    y = :sex, 
    color = :species, 
    Geom.beeswarm, 
    Scale.color_discrete_manual("#5377C9", "#DF8A56", "#82CA70"), 
    Theme(background_color = "white"),
)

Screenshot 2022-05-24 at 20 37 14

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

1 participant