Skip to content

Instantly share code, notes, and snippets.

@AlfonsoRReyes
Created March 21, 2017 20:03
Show Gist options
  • Save AlfonsoRReyes/55ae89d3fef05ce4ae91ad2395fc0daf to your computer and use it in GitHub Desktop.
Save AlfonsoRReyes/55ae89d3fef05ce4ae91ad2395fc0daf to your computer and use it in GitHub Desktop.
transparent plot like Excel
library(ggplot2)
set.seed(10)
data = rnorm(100)
ggplot(data.frame(data=data), aes(x=data))+
geom_histogram(fill="#4F81BD", binwidth=.5)+
theme(panel.background = element_rect(fill = "transparent",colour = NA),
panel.grid.minor = element_blank(),
panel.grid.major = element_line(colour="#CDCDCD", size=0.25) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment