I have following data frame with me:
Index | ColA | ColB | ColC | ColD
1 | NA | NA | 0 | NA
2 | NA | 0 | 1 | 0
3 | NA | NA | 2 | 1
4 | 1 | 0 | 2 | 2
5 | NA | NA | 2 | NA
6 | NA | 1 | 1 | 1
7 | 0 | 1 | 0 | 2
8 | NA | 2 | 0 | 2
9 | NA | 0 | NA | 1
10 | 2 | 1 | 0 | 0
Now, I want to plot this data using R where X-axis is Index column and Y-axis represents the remaining column names (ColA, ColB, ColC and ColD). Each x-y point in the plot should represent whether there exist a NA or Non-NA. Similar to this (for above mentioned data frame):
ColD - - - - - - - -
ColC - - - - - - - - -
ColB - - - - - - -
ColA - - -
1 2 3 4 5 6 7 8 9 10
Thanks in advance for the help!