2

Is it possible to put the secondary scale in ggplot2 on the same side as the primary one? (I'm talking about a secondary axis that is a one-to-one transformation of primary axis, so I avoid problems outlined here, the issue is purely the placement of the scale.)

Example: enter image description here

Tamas Ferenci
  • 424
  • 2
  • 10

1 Answers1

0

could solve what you want ?

ggplot(data = mpg) + 
  geom_point(mapping = aes(x = displ, y = cty))+
  facet_wrap(~ manufacturer, nrow = 2)
FrakTool
  • 65
  • 1
  • 15
  • Thanks for the suggestion, but I don't think it answers the question (honestly, I don't really see if it has anything to do with the question at all...). Please compare the result of this answer with the example (and my overall aim). – Tamas Ferenci May 21 '20 at 13:42