[R] Garbled plot label

Henric Nilsson henric.nilsson at statisticon.se
Mon Apr 25 14:22:12 CEST 2005


Uwe Ligges said the following on 2005-04-25 10:22:
> Maciej Bliziński wrote:
> 
>> Hello,
>>
>> While using the "plot" function against a model with a long formula,
>> I get a garbled label in the bottom of the plot. It looks like there are
>> two lines printed one over another, here's my example:
>>
>> http://pico.magnum2.pl/maciej/NodalInvolvement/MisclassificationRate?action=AttachFile&do=get&target=TwoFactorResiduals.png 
>>
>>
>> This was from using  "plot(model_object)" which produces 4 plots at
>> once. Can I fix it somehow?
>>
>> I already tried googling, and searching R maillist archives and didn't
>> find a relevant discussion.
>>
> 
> Can you provide a reproducible example please (the posting guide ask to 
> do so anyway)?

It's quite easy to reproduce this. Just

long.var.name.1 <- runif(10)
long.var.name.2 <- runif(10)
long.var.name.3 <- runif(10)
long.var.name.4 <- runif(10)
fit <- lm(long.var.name.1 ~ long.var.name.2 + long.var.name.3 + 
long.var.name.4)
plot(fit)

//H




More information about the R-help mailing list