Skip to content

Instantly share code, notes, and snippets.

@null712
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save null712/0849ced2629f8d7aa8bb to your computer and use it in GitHub Desktop.
Save null712/0849ced2629f8d7aa8bb to your computer and use it in GitHub Desktop.
bar.spread = ggplot(data = spread,aes(x = sym, y = avg.spread, colour = "seagreen3", fill = "seagreen3")) +
geom_bar(width = 0.5, stat = "identity") +
xlab("") + ylab("Average Spread (%)") +
geom_hline(yintercept = min(spread$avg.spread), linetype = "dashed", colour = "red") +
geom_hline(yintercept = max(spread$avg.spread), linetype = "dashed", colour = "red") +
geom_hline(yintercept = 0) +
theme(
legend.position = "none",
axis.title = element_text(size = 10),
axis.text = element_text(size = 9))
print(bar.spread)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment