r - Plot with 2 y axes, one y axis on the left, and another y axis on the right -


i need plot bar chart showing counts , line chart showing rate in 1 chart, can both of them separately, when put them together, scale of first layer (i.e. geom_bar) overlapped second layer (i.e. geom_line).

can move axis of geom_line right?

<rant> client wants 2 y scales. giving them "flawed" speech pointless. ggplot2 insistence on doing things right way. sure ggplot in fact educating average user proper visualization techniques. </rant>

maybe can use faceting , scale free compare 2 data series? - e.g. here: https://github.com/hadley/ggplot2/wiki/align-two-plots-on-a-page


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -