Assume two variables (state
and group
). Instances of state
(s) may share a property with specific instances of group
(g). For example, s1, s2 and s3 may have an association with g1.
I would like to visualize the association between the two variables in the form of a diagram like to one displayed below:
I would like to generate such a diagram with R. What R package would you recommend me to use?
Based on the suggestion of lukeA, I came up with the following code that addresses the above-mentioned need.
In Shell:
In R: