abznak

Thursday, 29 April 2010

ggplot2 background colour

changing the background colour of a ggplot - run this, then rerun plot

> th = theme_bw()
> th$panel.background
theme_rect(fill = "white", colour = NA)
> th$panel.background = theme_rect(fill = "black", colour = NA)
> theme_set(th)
Posted by abznak at 13:10
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest
Labels: ggplot2, r

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2020 (3)
    • ►  December (2)
    • ►  April (1)
  • ►  2017 (2)
    • ►  February (2)
  • ►  2016 (3)
    • ►  December (1)
    • ►  August (1)
    • ►  July (1)
  • ►  2014 (2)
    • ►  May (1)
    • ►  February (1)
  • ►  2013 (2)
    • ►  August (2)
  • ►  2012 (4)
    • ►  July (1)
    • ►  May (2)
    • ►  February (1)
  • ►  2011 (6)
    • ►  October (2)
    • ►  September (1)
    • ►  April (1)
    • ►  March (1)
    • ►  January (1)
  • ▼  2010 (20)
    • ►  December (3)
    • ►  November (1)
    • ►  September (2)
    • ►  August (3)
    • ►  July (1)
    • ►  June (1)
    • ►  May (2)
    • ▼  April (2)
      • ggplot2 background colour
      • Zend Soap Client exception
    • ►  March (1)
    • ►  February (2)
    • ►  January (2)
  • ►  2009 (11)
    • ►  December (1)
    • ►  November (3)
    • ►  October (1)
    • ►  July (4)
    • ►  June (2)

About Me

abznak
View my complete profile

Pages

  • Home
  • Portfolio
  • External Sites
  • Circles
  • The Race to 80
  • Garden
  • Links
  • About
Simple theme. Powered by Blogger.