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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -