search for: studien_flaeche

Displaying 5 results from an estimated 5 matches for "studien_flaeche".

2023 Nov 24
1
ggplot adjust two y-axis
...part de sibylle.stoeckli at gmx.ch Envoy??: 24 novembre 2023 05:52 ??: r-help at 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,aes(BFF,Wert,fill=Studien_Flaeche))+ geom_bar(stat="identity",position='dodge')+ scale_y_continuous(name="First Axis", sec.axis=sec_axis(trans=~.*50, name="Second Axis"))+ scale_fill_brewer(palette="Set1") Thanks a lot Sibylle
2023 Nov 24
1
ggplot adjust two y-axis
...nt)? Kind regards Sibylle -----Original Message----- From: Charles-?douard Gigu?re <ce.giguere at gmail.com> Sent: Friday, November 24, 2023 3:14 PM To: sibylle.stoeckli at gmx.ch; r-help at 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?: Charles-?douard Gigu?re <ce.giguere at gmail.com> Envoy??: 24 novembre 2023 09:11 ??: sibylle.stoeckli at gmx.ch; r-help at r-project.org Objet?: RE: [R] ggplot adjust two y-axis Hi Sibylle, For that kind of data with two different sca...
2023 Nov 24
1
ggplot adjust two y-axis
...nt)? Kind regards Sibylle -----Original Message----- From: Charles-?douard Gigu?re <ce.giguere at gmail.com> Sent: Friday, November 24, 2023 3:14 PM To: sibylle.stoeckli at gmx.ch; r-help at 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?: Charles-?douard Gigu?re <ce.giguere at gmail.com> Envoy??: 24 novembre 2023 09:11 ??: sibylle.stoeckli at gmx.ch; r-help at r-project.org Objet?: RE: [R] ggplot adjust two y-axis Hi Sibylle, For that kind of data with two different sca...
2023 Nov 24
1
ggplot adjust two y-axis
...nt)? Kind regards Sibylle -----Original Message----- From: Charles-?douard Gigu?re <ce.giguere at gmail.com> Sent: Friday, November 24, 2023 3:14 PM To: sibylle.stoeckli at gmx.ch; r-help at 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?: Charles-?douard Gigu?re <ce.giguere at gmail.com> Envoy??: 24 novembre 2023 09:11 ??: sibylle.stoeckli at gmx.ch; r-help at r-project.org Objet?: RE: [R] ggplot adjust two y-axis Hi Sibylle, For that kind of data with two different sca...
2023 Nov 24
1
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,aes(BFF,Wert,fill=Studien_Flaeche))+ geom_bar(stat="identity",position='dodge')+ scale_y_continuous(name="First Axis", sec.axis=sec_axis(trans=~.*50, name="Second Axis"))+ scale_fill_brewer(palette="Set1") Thanks a lot Sibylle -------------- next part -------------- A non-text...