mkshaw / r2mlm

r2mlm: R Package for Calculating R-Squared in Multilevel Models
27 stars 1 forks source link

Bargraph from "r2mlm" function doesn't fully fit, and legend overlaps with x-axis titles #54

Closed jpsnijder closed 2 years ago

jpsnijder commented 2 years ago

Hi Mairead,

first of course thank you for your work on this. It is very helpful :)

I have an issue with getting the plot to play nice. see images below. No matter how I drag/size the plot I can't get it to come out nice. My screen resolution is 2560 * 1440. Maintain aspect ration on/off doesn't matter. R/Rstudio are updated. Saving as image, copy to clipboard, none of it gives me a nice plot..

Any ideas here?

image image

jpsnijder commented 2 years ago

Sorry I didn't do better research! I found the code right in the example right here! For others:

Adjust plot margins

par(mar = c(6.75, 10.5, 2.625, 10.5))

mkshaw commented 2 years ago

Hi @jpsnijder thank you for your kind words about the package and that's it exactly: the plot margins just have to be changed around until the graph fits decently. Glad you resolved the problem! :)