I have a big data frame that look like this:
GeneSymbol Sample1 Sample2 Sample3 Sample4
A value11 value12 value13 value14
A value21 value22 value23 value24
B etc. etc.
B
B
B
C
C
C
I would like to plot density functions by group and by lines (rows). For example: for group A, two density plots because there are two elements belonging to group A; for group B, 4 density plots because there are 4 elements belonging to group B, etc.