Skip to content

Instantly share code, notes, and snippets.

@thigm85
Created February 12, 2014 08:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thigm85/8951896 to your computer and use it in GitHub Desktop.
Save thigm85/8951896 to your computer and use it in GitHub Desktop.
require(ggplot2)
# Figure 1
ggplot(GermanCredit, aes(x = Class)) +
geom_bar(aes(y = (..count..)/sum(..count..))) +
labs(y = "prob.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment