search for: douard

Displaying 7 results from an estimated 7 matches for "douard".

Did you mean: edouard
2023 Nov 24
1
ggplot adjust two y-axis
Hi, Just find a scaling factor that would make the two sets of data comparable. Here I divided the second row by 5 and did the same for the second axis. Charles-?douard F1 <- as.table(matrix(c(50,11,6,17,16,3,1,2237,611,403,240,280,0,0), 2,7)) barplot(F1, beside = TRUE, col = c("blue", "grey")) axis(2, at=c(0,10,20,30,40,50,60, labels=c(0,10,20,30,40,50,60))) axis(4, at = c(0,500,1000,1500,2000,2500), labels = c(0,500,1000,1500,2000,2500))...
2023 Nov 24
1
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 for comparison. F1 <- as.table(matrix(c(50,11,6,17,16,3,1,2237,611,403,240,280,0,0), 2,7)...
2023 Nov 24
1
ggplot adjust two y-axis
...(matrix(c(2,10,3,11), 2,2)) barplot(test, beside = TRUE, col = scales::brewer_pal(palette = 1)(2)) axis(4, at = c(0, 5, 10), labels = c(0,50,100)) -----Message d'origine----- De?: sibylle.stoeckli at gmx.ch <sibylle.stoeckli at gmx.ch> Envoy??: 24 novembre 2023 09:27 ??: 'Charles-?douard Gigu?re' <ce.giguere at gmail.com>; r-help at r-project.org Objet?: RE: [R] ggplot adjust two y-axis Dear Charles-Edouard Thanks a lot. So no way in R to just simply have one ggplot with to axis as in Excel (attachment)? Kind regards Sibylle -----Original Message----- From: Charles-?d...
2023 Nov 24
1
ggplot adjust two y-axis
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?: R-help <r-help-bounces at r-project.org> De la 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?...
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"))+
2010 Jan 03
1
ADF test : how to deal with the missing values ?
[[alternative(swapped) HTML version deleted]] This is MIME Epilogue
2009 Dec 27
4
how to create a simple loop ?
..., but I have been unsuccessful at using the ‘for’ loop function. Please, don’t explain things too hard as it is often the case that people wants to help but gets into too much sophistication. Someone can write that little code for this example ? Or suggest functions ? Thanks for your help. Cheers, Édouard. [[alternative(swapped) HTML version deleted]] This is MIME Epilogue