title: Change plot area background color
body: <p>I would like to do a graph in R using our company colors. This means the background of all charts should be a light blue, the plotting region however should be white. I was searching for answers and found that drawing a rect does the job (almost). However the plotting region is now white and the graph not visible anymore. Is this even possible?</p>
  
  <pre><code>getSymbols('SPY', from='1998-01-01', to='2011-07-31', adjust=T)
  
  GRAPH_BLUE&lt;-rgb(43/255, 71/255,153/255)
  GRAPH_ORANGE&lt;-rgb(243/255, 112/255, 33/255)
  GRAPH_BACKGROUND&lt;-rgb(180/255, 226/255, 244/255)
  
  par(bg=GRAPH_BACKGROUND)
  
  colorPlottingBackground&lt;-function(PlottingBackgroundColor = "white"){
    rect(par("usr")[1], par("usr")[3], par("usr")[2], par("usr")[4], col ="white")
  }
  
  plot.xts(SPY, col=GRAPH_BLUE)
  colorPlottingBackground()
  </code></pre>