[R] Change Variable Labels in Quantile Plot

Kitty Lee lee.kitty at yahoo.com
Wed Aug 24 01:16:25 CEST 2011


Why not just change the names of the variables before invoking the call to
rq, and its formula?
Because I won't be able to do longer label e.g. 'Population Density Per Square Mile'.

I actually found the solution by accident---

x<-rnorm(50)
x1<-rnorm(50)
y<-x+x1+rnorm(50) out<-rq(y~x+x1, tau=1:9/10) 
plot(summary(out), main=c('Intercept', 'Population Density Per Square Mile', '% Single Parent))


K.


==============


Hi Roger, Maybe I'm missing a clue. Here's an example: x<-rnorm(50)
x1<-rnorm(50)
y<-x+x1+rnorm(50) out<-rq(y~x+x1, tau=1:9/10)
plot(summary(out))
plot.out<-plot(summary(out)) #I change the variable names dimnames(plot.out)<-list(c("intercept", "sex", "inc")) Why not just change the names of the variables before invoking the call to
rq, and its formula?



More information about the R-help mailing list