[R] ggplot2 install.package

2022-10-10 Thread sibylle.stoeckli
Dear R members I am working with RStudio R 4.2.0 and using ggplot2 and gridExtra. Since some windows updates I get some error when loading ggplot2. * It seems that I am able to install ggplot2. The problem is when loading ggplot2 with library(). * Do you have any ideas to solve

Re: [R] ggplot2 install.package

2022-10-10 Thread sibylle.stoeckli
Dear R users Thanks a lot. I will try again. The error code was below the email, but there was some encryption: - Error in nchar(homeDir:invalid multibyte string, element 1 - I realised that I was able to install ggplot2, but the error is afterwards when loading ggplot2 (library()). Kind regar

[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=~.*

Re: [R] ggplot adjust two y-axis

2023-11-24 Thread sibylle.stoeckli
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,