plot.new has not been called yet

Can you provide a reproducible example?