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
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-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
-
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
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
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
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 :
7 matches
Mail list logo