How to set gap between multiple scatter plot - Plotly



I’d like to compare values of two different cases through scatter plots and basically this is what I have now:

As you can see, each correspondent variable of my cases are above the another. What I would like to do is put the value of floor case 1 side by side with the value of floor case 2, and so on, something like change the bargap in a bar plot situation.

Is there a way to do this in Plotly?



Here is how you could do it with VegaLite.jl (assuming you have precomputed floor, average and roof):

data |>
@vlplot(:point, x="case:o", column={"year:n"}, y={:values, title=""}, color=:cat1, shape=:cat1)

And you’ll get:

This assumes you have your data in a table with columns cases, year, values and cat1.


@davidanthoff Thank you very much!!