[R] par.plot() for repeated measurements
Jonas Stein
news at jonasstein.de
Sun Jan 15 01:54:32 CET 2012
> I am using the package gamlss in R to plot repeated measurements. The
> command I am using is par.plot(). It works great except one thing about the
> label of the axises. I tried to label both x and y axises using ylab and
> xlab options. But the plot only gives variable variables. The labels did not
> show up. Below is the code I used. Any comments are appreciated! Thanks.
>
> library(gamlss)
> enable2r=read.csv("D:\\lzg\\jointmodel\\enable2r.csv",header=T)
> enable2r$ID<-factor(enable2r$ID)
> par.plot(factpal~timetodeath2,data=enable2r,sub=ID,ylim=c(45,184),ylab='FACIT-PAL',xlab='Time
> to death',color=FALSE,lwd=1)
i can not use your example, as i have no enable2r.csv, but perhaps
you have luck if you change
xlab='Time to death'
to
xlab="Time to death"
kind regards,
--
Jonas Stein <news at jonasstein.de>
https://github.com/jonasstein/R-Reference-Card
More information about the R-help
mailing list