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
-- De : R-help De la part de sibylle.stoec...@gmx.ch Envoyé : 24 novembre 2023 05:52 À : r-help@r-project.org Objet : [R] ggplot adjust two y-axis Dear R-users Is it possible to adjust two y-axis in a ggplot differently? - First y axis (0-60) - Second y axis (0-2500) ### Figure 1 ggplot(Fig1,ae

[R] ggplot adjust two y-axis

2023-11-24 Thread sibylle.stoeckli
Dear R-users Is it possible to adjust two y-axis in a ggplot differently? - First y axis (0-60) - Second y axis (0-2500) ### Figure 1 ggplot(Fig1,aes(BFF,Wert,fill=Studien_Flaeche))+ geom_bar(stat="identity",position='dodge')+ scale_y_continuous(name="First Axis", sec.axis=sec_axis(trans=~.*