I am struggling to make bar plot with dual y-axis in R. I found many relevant posts but couldn't find the solution. For example, this is what my data is like:
abc 862054 111552197
xyz 760369 163135388
def 488089 130846735
I followed this post: Bar Plot with 2 y axes and same x axis in R language and used highcharter package to get this: dual y-axis barplot with highcharter:
However, I need a bar chart with two y-axes on two different sides (one on left and one on right).
Can someone please help me with this? From another answer on this post, Bar Plot with 2 y axes and same x axis in R language, I found the solution when x is list of numbers but in my case x is list of strings, not numbers.