Re: [R] ggplot adjust two y-axis

2023-11-25 Thread CALUM POLWART
rd Giguère > Sent: Friday, November 24, 2023 3:14 PM > To: sibylle.stoec...@gmx.ch; r-help@r-project.org > Subject: RE: [R] ggplot adjust two y-axis > > You could also use more simply facet_wrap(~ Studien_Flaeche). > Charles-Édouard > > -Message d'origine- > De : Char

Re: [R] ggplot adjust two y-axis

2023-11-24 Thread John Kane
0,2500), labels = > c(0,500,1000,1500,2000,2500)) > > -Message d'origine- > De : sibylle.stoec...@gmx.ch > Envoyé : 24 novembre 2023 11:27 > À : 'Charles-Édouard Giguère' ; r-help@r-project.org > Objet : RE: [R] ggplot adjust two y-axis > > Dear Charles-Edoua

Re: [R] ggplot adjust two y-axis

2023-11-24 Thread Charles-Édouard Giguère
ère' ; r-help@r-project.org Objet : RE: [R] ggplot adjust two y-axis Dear Charles-Edouard Thanks a lot. Yes indeed barplot sounds excellent. Unfortunately, the scale of the smaller axis is fixed, even If I am able to draw to axes. The idea is to expand the scale to the scale to the second axis

Re: [R] ggplot adjust two y-axis

2023-11-24 Thread sibylle.stoeckli
- From: Charles-Édouard Giguère Sent: Friday, November 24, 2023 3:57 PM To: sibylle.stoec...@gmx.ch; r-help@r-project.org Subject: RE: [R] ggplot adjust two y-axis Hi, I don't know the axis mecanism well enough in ggplot but using the original barplot function you can add an axis on the r

Re: [R] ggplot adjust two y-axis

2023-11-24 Thread Charles-Édouard Giguère
2)) axis(4, at = c(0, 5, 10), labels = c(0,50,100)) -Message d'origine- De : sibylle.stoec...@gmx.ch Envoyé : 24 novembre 2023 09:27 À : 'Charles-Édouard Giguère' ; r-help@r-project.org Objet : RE: [R] ggplot adjust two y-axis Dear Charles-Edouard Thanks a lot. So no

Re: [R] ggplot adjust two y-axis

2023-11-24 Thread Charles-Édouard Giguère
You could also use more simply facet_wrap(~ Studien_Flaeche). Charles-Édouard -Message d'origine- De : Charles-Édouard Giguère Envoyé : 24 novembre 2023 09:11 À : sibylle.stoec...@gmx.ch; r-help@r-project.org Objet : RE: [R] ggplot adjust two y-axis Hi Sibylle, For that kind of

Re: [R] ggplot adjust two y-axis

2023-11-24 Thread Charles-Édouard Giguère
Hi Sibylle, For that kind of data with two different scales, I generally use two graphs that I name gg1 and gg2 and join them using gridExtra::grid.arrange(gg1, gg2). This way, the red part of your graph is easier to interpret. Have a nice day, Charles-Édouard -Message d'origine- De :