I have this kind of data (0=absence, 1=presence) with 4 groups, 21 samples as below.
As appeared in the excel, the 1 could appear as the color that represent the group (presence), how can I draw that information in heatmap using R ?
If anyone has similar experience of visualization, please leave me any recommendation for it.
- Maybe there could be better way to represent the group and presence of the taxa in each samples with visualization.
Any code or comment for the heatmap visualization would be greatly appreciated !!
Just FYI, rows are 4 groups and columns are 21 samples.