I have a simple boxplot for my data using R ..
boxplot (Error~Code, DataFrame1, xlim = c(0, 27),
xlab="set Code",ylab="Error", boxwex=0.75, cex.axis=0.3)
and I would like to draw a transparent rectangle all over the plot between 2 defined y-values: (-50 ) and (100)!
I tried using the function rect as follows after the previous script:
rect(0,-50,27,100, col= 'tomato2', density=10)
but this does not give me a uniform colored rectangle with transparency!!
Could anybody please help me in that? I almost spend over 2 hours until now on this with no success.
Many thanks in advance!