R graph with two y-​​axes

Sometimes it is required to use two Y-axes in the same graph. The method to achieve the goal is depended by the basic graphic package, such as ggplot2, lattice. Because ggplot2 is my first choice, so I’m trying to get a solution for ggplot2.

kohske’s solution is the only one I can find right now.

http://rpubs.com/kohske/dual_axis_in_ggplot2

http://stackoverflow.com/questions/18989001/how-can-i-put-a-transformed-scale-on-the-right-side-of-a-ggplot2

http://stackoverflow.com/questions/18509723/display-two-parallel-axes-on-a-ggplot-r/18511024#18511024

http://rwiki.sciviews.org/doku.php?id=tips:graphics-base:2yaxes

http://robjhyndman.com/hyndsight/r-graph-with-two-y-axes/

http://evolvingspaces.blogspot.de/2011/05/multiple-y-axis-in-r-plot.html

http://stackoverflow.com/questions/6142944/how-can-i-plot-with-2-different-y-axes-in-r/

https://groups.google.com/forum/#!topic/ggplot2/eCBtE5ODW1M

http://stackoverflow.com/questions/17661052/force-x-axis-text-on-for-all-facets-of-a-facet-grid-plot/17661337#17661337

Leave a Reply

Your email address will not be published. Required fields are marked *