R – Change background color of R plot

plotr

All right, let's say I have the following plot.

df = data.frame(date=c(rep(2008:2013, by=1)),
                value=c(303,407,538,696,881,1094))

barplot(df$value, main="TITLE", col="gray", ylab="People", xlab="Years")

How can I change the background to navy blue?

I know this is possible with ggplot2, but not sure if I can do this with base graphics.

Best Answer

Like

par(bg = 'blue')
# Now do plot