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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -