Skip to content

Instantly share code, notes, and snippets.

@jwolfson
Created January 18, 2016 05:14
Show Gist options
  • Save jwolfson/17672c7658b14a411553 to your computer and use it in GitHub Desktop.
Save jwolfson/17672c7658b14a411553 to your computer and use it in GitHub Desktop.
Carved case design using R
par(mar=c(0,0,0,0))
plot(x, dbeta(x,shape1=4, shape2=4),
type = "l",
ylim = c(0,4),
bty = "n",
xaxt = "n",
yaxt = "n",
xlab = "",
ylab = "",
lwd = 3)
sapply(seq(4.5,13,by=0.5), function(s) {
lines(x, dbeta(x,shape1=s, shape2=4),lwd=1)
})
sapply(seq(4.5,8,by=0.5), function(s) {
lines(x, dbeta(x,shape1=4, shape2=s),lwd=1)
})
@jwolfson
Copy link
Author

Saved as an SVG and uploaded to http://www.carved.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment