How to plot 2D polygons / shapes in Julia and color surfaces?

I have a dataframe that contains the spatial coordinates of polygons as columns x,y, their ID as a column and another column according tho whose values I would like to color the surfaces. Do you have suggestions on how to approach this? In R this is quite straightforward, but I already fail in plotting surfaces by using XY coordinates in Julia.

using Plots;
plot([Shape(df.x, df.y)], group=df.ID,fill_z=df.value)

This plots arbitrary shapes that are stored in a dataframe with x,y,ID,value columns.

1 Like