Ternary plot - scaling opacity across groups
问题 I am trying to make a contour ternary plot, with two groups, where the opacity (alpha) of the contours is a function of the density of the points (e.g. more points tightly clustered = less opaque). I am stuck on one point. My two groups (here A and B ) have unequal group sizes ( A = 150 obs, B = 50 obs), this means points in one group are frequently alot more clustered, when this is the case the opacity of group B should be much higher relative to group A , since points in group B are much