Pedro, vocĂȘ pode usar um attach no else.

attach(data)
plot(x, y)
detach(data)