I want to add an axis on the right, how do I do it?

${ROOTSYS}/tutorials/hist/transpad.C
${ROOTSYS}/tutorials/hist/twoscales.C

BTW. You can also modify the macro which created the picture you show to use histograms instead of graphs.