Skip to content

Instantly share code, notes, and snippets.

@null712
Last active August 29, 2015 14:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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