Fifo
Fifo

Reputation: 1

R formatting plot - remove bottom line

Click for image

How to remove the line at the bottom? (the regression formula) & How to remove the "cook distance" title?

cutoff=4/((nrow(forR_v3)-length(linear1$coefficients)-2))
plot(linear1,which=4,cook.levels=cutoff, title=" ", main=NULL, sub=NULL, 
axes=FALSE, ann=FALSE)
axis(1)
axis(2)

Upvotes: 0

Views: 457

Answers (1)

Adam Quek
Adam Quek

Reputation: 7153

fit <- lm(Petal.Length ~ Sepal.Length, iris)
plot(fit,which=4, caption="", sub.caption="", cook.levels=4/150, ann=FALSE, bty="n")

enter image description here

Upvotes: 1

Related Questions