Skip to content

Change Variable Labels in Quantile Plot

1 message · Kitty Lee

#
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?