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

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -