We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Horizontal bar plots are off center while vertical bar plots work just fine. [Julia 1.7.3 and Gadfly 1.3.4]
using CSV, DataFrames, Statistics, Gadfly download("https://raw.githubusercontent.com/mwaskom/seaborn-data/master/penguins.csv", "penguins.csv") penguins = DataFrame(CSV.File("penguins.csv")) set_default_plot_size(16cm, 12cm) plot( combine(groupby(dropmissing(penguins), [:species, :sex]), :body_mass_g .=> mean .=> :body_mass_g), x = "species", y = "body_mass_g", color = "sex", Geom.bar(orientation = :vertical), Theme(bar_spacing = 15mm, background_color = "white",) )
plot( combine(groupby(dropmissing(penguins), [:species, :sex]), :body_mass_g .=> mean .=> :body_mass_g), x = "body_mass_g", y = "species", color = "sex", Geom.bar(orientation = :horizontal), Theme(bar_spacing = 15mm, background_color = "white",) )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Horizontal bar plots are off center while vertical bar plots work just fine.
[Julia 1.7.3 and Gadfly 1.3.4]
The text was updated successfully, but these errors were encountered: