plot(0,0)
backGround(bg="beige",fg="red",vertical=0,horizontal=0)
plot(0,0)
backGround(bg=c("yellow","green"),fg="red",xlim=c(-1,1),ylim=c(-1,1),horizontal=seq(0,1,.1))
backGround(bg=c("yellow","green"),fg="red",horizontal=seq(0,1,.1))
Run the code above in your browser using DataLab