Black Lives Matter. Please consider donating to Black Girls Code today.

Violin plot with better visual color design representing the density of points

Not able to make Violin plot with gradient color that represents the density of points like https://stackoverflow.com/questions/41620536/violin-plot-gradient-fill-in-ggplot2

In a perfect world would like to define colorscale=‘Hot’ and have a Violin plot that is displayed with hot colors in the high-density array and colder gradient for the extremities of low density.

Example of Histogram2dhistogram:


Example of Violin distorted by the other violin distributions