I am having a data where the row.names are gene names and I have two columns and I would like to plot the gene names as in x axes and in one y axis I want the number of variants and in the other y axis the pathogencity score
My table is like this
Variant numbers Pathogencity scores
MED12 5 0.814
MYD88 2 0.96
SF3B1 5 0.871
JAK2 2 0.988
NF1 3 0.965
TNFAIP3 2 0.936
PHF6 3 0.928
ATRX 2 0.871
My row.names
are genes. I would want to put a barplot with 2 y axis showing one the number of variants on the left and pathogenictiy score on the right. I was trying to find examples of plotrix(twoord.plot) but was unable to find. I can create the single plots but unable to put the second y axis.
Any help would be appreciated. Thanks