Skip to content

Instantly share code, notes, and snippets.

@rpcgen
Created February 14, 2013 17:40
Chart to explain Bernoulli distribution
png("chart_bernoulli.png")
barplot(c(0.36, 1-0.36), col = c(4,2))
legend("topleft", c("success", "failure"), cex = 1, bty="n", fill = c(4, 2))
dev.off()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment