dylan roddy
dylan roddy

Reputation: 3

new error, Error in plot.new() : attempt to plot on null device

Can anyone help with this error I'm getting, I'm currently on mac.

lob=read.csv("~/Desktop/data.csv")
lob
mlm.lob=glm(location~crusher+cutter+rostrum+as.factor(sex),data=lob,family="binomial")
mlm.lob
plot(mlm.lob)

Error in plot.new() : attempt to plot on null device

Upvotes: 0

Views: 1612

Answers (1)

stop_control
stop_control

Reputation: 191

Execute dev.off() before trying to plot your graph. Is this doesn't work you can set your relative figure sizes/plot sizes by setting par(). Look up the description by typing in help(par).

Upvotes: 2

Related Questions