Skip to content

Instantly share code, notes, and snippets.

@aurielfournier
Created August 7, 2015 19:10
Show Gist options
  • Select an option

  • Save aurielfournier/871646f8ac681113acdf to your computer and use it in GitHub Desktop.

Select an option

Save aurielfournier/871646f8ac681113acdf to your computer and use it in GitHub Desktop.
dat <- data.frame(a=seq(1,100, by=2), b=rnorm(50,0,1))
ggplot()+geom_line(data=dat, aes(x=a, y=b), color="white")+theme(panel.background=element_rect(fill="black"),
plot.background=element_rect(fill="black"),
text=element_text(color="white"),
panel.grid=element_blank(), # removes the gridelines, comment this out to have gridlines
axis.line=element_line(color="white")) # gives you an x and y axis line since we removed the gridlines
# This code will make this graph -> http://i.imgur.com/4RT5GQ1.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment