Base R Boxplots - legend does not scale correctly in multiple plots layout

Hello,
I have a Problem when it comes to laying out multiple Plots in one figure. I placed my legend in the topright corner in each Boxplot but when putting them together in one single figure my legend is looking way too big so it looks like it would appear in the middle of the plot. All other labels seem to be scaled correctly. I am using MacOS and i found out it could be something with my Plotviewer doing something wrong but I'm not an expert so i don't know how to fix it. Any help is highly appreciated. Thanks.

par(mfrow=c(2,3))
boxplot(sd_0cm_weide_won1,sd_0cm_kontrolle_won1,sd_5cm_weide_won1,
        sd_5cm_kontrolle_won1,sd_10cm_weide_won1,sd_10cm_kontrolle_won1,
        boxwex=0.5,
        ylab="Standardabweichung  LAI", 
        main="Wonnhalde Fl├Ąche 1",
        col = c("grey90","grey60","grey90","grey60","grey90","grey60"),
        xaxt = "n"
       )
legend("topright",
       inset = 0.05,
       legend=c("Weide","Kontrolle"),
       fill = c("grey90","grey60"),
       box.lty=1
      )
mtext(c("0cm","5cm","10cm"),
      at=c(1.5,3.5,5.5),
      side=1,
      line = 0.6,
      cex = 1.1
      )

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.