Re: [R] Truncated plots

2024-01-09 Thread avi.e.gross
Nick, obviously figuring out the problem is best but you may want to deal with the symptom. RSTUDIO lets you adjust the sizes of the various windows and enlarging the window (lower right normally) where the graph is shown may be a first attempt if the problem is display space. And note RSTUDIO

Re: [R] Truncated plots

2024-01-09 Thread John Kane
If it looks to be a very specific RStudio/ggplot2 problem then https://community.rstudio.com is probably the place to ask. What happens if she does as Duncan suggests or if she exports the file? Come to think of it, is she getting the same result if she clicks on Zoom in the plot window? The

Re: [R] Truncated plots

2024-01-09 Thread Ivan Krylov via R-help
В Tue, 9 Jan 2024 16:42:32 + Nick Wray пишет: > she has a problem with R studio on her laptop Does the problem happen with plain R, without Rstudio? What's the student's sessionInfo()? > I have a screenshot which could email if anyone needs to see what it > looks like. I think that PNG

Re: [R] Truncated plots

2024-01-09 Thread Ebert,Timothy Aaron
It would help to have reproducible code. Use dummy data for confidentiality (if you care about that). My guess is that you set margins somewhere and never returned them to a default value. The first thing I would try is to open a new window in RStudio, copy the smallest piece of code that will

Re: [R] Truncated plots

2024-01-09 Thread Duncan Murdoch
On 09/01/2024 11:42 a.m., Nick Wray wrote: Hello As a postgrad I have been helping an undergraduate student with R coding but she has a problem with R studio on her laptop which I can't fix - basically when she runs a plot it appears without a y axis label with the black line plot frame hard

[R] Truncated plots

2024-01-09 Thread Nick Wray
Hello As a postgrad I have been helping an undergraduate student with R coding but she has a problem with R studio on her laptop which I can't fix - basically when she runs a plot it appears without a y axis label with the black line plot frame hard against the plot window and the bottom of the

Re: [R] how to specify uncorrelated random effects in nlme::lme()

2024-01-09 Thread Viechtbauer, Wolfgang (NP)
Dear Zhen, You can use this with pdDiag(). An example: library(nlme) res <- lme(distance ~ age*Sex, random = list(Subject = pdDiag(~ age)), data=Orthodont) summary(res) Best, Wolfgang > -Original Message- > From: R-help On Behalf Of ?? > Sent: Monday, January 8, 2024 12:43 > To:

[R] how to specify uncorrelated random effects in nlme::lme()

2024-01-09 Thread 王震
Dear professor, I'm using package nlme, but I can't find a way to specify two uncorrelated random effects. For example, a random intercept and a random slope. In package lme4, we can specifyx + (x ll g) to realize, but how in nlme? Thanks! Zhen Wang