Skip to content

Instantly share code, notes, and snippets.

@azadag
Created May 24, 2018 22:03
Show Gist options
  • Save azadag/17db9dc666c7660e1f60e377a540d1ee to your computer and use it in GitHub Desktop.
Save azadag/17db9dc666c7660e1f60e377a540d1ee to your computer and use it in GitHub Desktop.
ggplot
ggplot(data = storms, aes(x = pressure)) +
geom_density(fill = 'cyan', color = 'cyan') +
labs(title = 'The pressure variable is strongly left-skewed') +
theme(text = element_text(family = 'Gill Sans', color = "#444444")
,panel.background = element_rect(fill = '#444B5A')
,panel.grid.minor = element_line(color = '#4d5566')
,panel.grid.major = element_line(color = '#586174')
,plot.title = element_text(size = 24)
,axis.title = element_text(size = 18, color = '#555555')
,axis.title.y = element_text(vjust = .5, angle = 0)
,axis.title.x = element_text(hjust = .5)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment