Sometimes, as in the following code, I call the same boxplot several times.
x <- 1:10
y <- 1:5
r <- boxplot(x, y,col="blue")
grid(nx=NA, ny=NULL) #grid over boxplot
par(new=TRUE)
boxplot(x, y,col="blue")#grid behind boxplot
In cases with many boxplot-parameters (unlike here), this generates many lines of code.
How can I use the variable r for the second call in order to save this space?