Change x- and y-axis on multiple plots

Hey everybody!
Im relatively new to R so please try to explain in a easy way to understand.
My problem: I´ve written a script with a hell lot of scatterplots. I forgot to think about which variable i want on the x- and y-axis. Is there a way to switch the axes on multiple plots?
All plots where created in a way like the following:

plotR1R3 <- ggplot(df_SGBS, aes(x=R1,y=R3))+
geom_smooth(method="lm", formula = y~x, se=FALSE)

You could use ...+ coord_flip()

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.