Ethan- You need to be more explicit about what you mean by 'background'. Do you mean: (a) the entire plot including margins?, or (b) only the plotting area?, or (c) a different color for both margins and plotting area?
If you want (a), the solution is par(bg = '#003D79'). If you want (b), the solution is a little trick I picked up from the R help archives: plot.area.col<-function(col){ ttt<-par()$usr rect(ttt[1],ttt[3],ttt[2],ttt[4],col=col) } plot(1,1, panel.first=plot.area.col('#003D79') ) If you want (c), you can combine both (a) and (b) as follows: par(bg = 'blue') plot(1,1, panel.first=plot.area.col('red') ) Hope that helps. -tgs If you are using the plot function, and you only want to change the plot area colored On Wed, Sep 29, 2010 at 10:14 AM, Arenson, Ethan <earen...@nbome.org> wrote: > > Hi. > > I want to create a plot with Pantone654 as the background. The RGB for this > color is (0,61,121), which corresponds to a hex of #003D79. How do I specify > the bg parameter for this? > > All Best, > Ethan > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.