Gadfly boxplot is getting plotted like a vertical straight line (missing the box part)

Hello,

I am trying to make a boxplot using Gadfly but all I see are straight vertical lines. Also, this seems to be a very tricky issue. It only happens for a specific combination of data points, and I am not able to figure out what’s wrong. I have replicated the issue using fake data below, please help me understand what may I be missing?

Also, there are 2 issues that this dataset is causing.

  1. The major issue is that I am seeing all vertical lines
  2. If I try to make the plot differently, I do see box plots but then the left most and the right most end of the plot is getting trimmed away.

Fake Data

df_plot = vcat(
DataFrame(model = repeat([“one”,“two”, “three”],inner=242),
type = repeat([“type1”],outer=726),
data=rand(726)),

DataFrame(model = repeat([ “four”, “five”, “six”],inner=242),
type = repeat([“type2”],outer=726),
data=rand(726)))
image

Some more information about the data
image

Plot (issue 1)

Gadfly.plot(df_plot,
x = :type,
y=:data,
color=:model,
Geom.boxplot
)

Plot (issue 2)
Gadfly.plot(df_plot,
x=:model,
y=:data,
color = :type, # swapped color and x aesthetics
Geom.boxplot,
)

I tried to increase the width of the plot using

set_default_plot_size(10inch, 4inch)

but the issue still remains

Thank you for all the help!