Stream: helpdesk (published)

Topic: Algebra of Graphics


view this post on Zulip Chong Kai Ng (Mar 12 2023 at 08:54):

Hi all.

I am currently using AlgebraOfGraphics (with CairoMakie backend).

Was running thru the PalmerPenguin data set and was trying to plot and I ran into a problem. I have removed all missing entries prior to plotting.

So basically

using PalmerPenguins
using DataFrames

penguin = DataFrame(PalmerPenguins.load())
penguin_complete = penguin[findall(completecases(penguin)),  :]

plt = data(penguins_complete) *
        mapping(:species, :body_mass_g, color=:island, dodge=:island) *
        visual(BoxPlot)
draw(plt)

I got the following. As you can see from below, the species “Gentoo” did not appear / got cut off in the plot.

image.png

Anyone knows why this is the case?

Thank you!

view this post on Zulip jar (Mar 12 2023 at 18:23):

Looks like a bug to me, I'd file an issue


Last updated: Nov 06 2024 at 04:40 UTC