Stripplot and adjust the size and color of points based on some variables

How can I plot stripplot and adjust the size and color of points based on some variables?
Like this


Page: The Economist: A different way to measure the climate impact of food
Data Sorce: Data Explorer: Environmental Impacts of Food - Our World in Data

It’s possible but only to certain extend as the color and size parameter do not accept lists.

I answered a similar question here:

1 Like

Thank you! It seems…
color and size parameter do not accept lists in px.strip ,
and no β€œjitter” parameter in px.scatter .

Hi @Jinze.
Correct, you might come up with a custom jitter function which I considered to create last time but I did not spend more time on that. Shouldn’t be too difficult, though.

1 Like