Skip to content

Instantly share code, notes, and snippets.

@jayjacobs
Last active August 29, 2015 14:11
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 jayjacobs/c3296602ed0c57fe9416 to your computer and use it in GitHub Desktop.
Save jayjacobs/c3296602ed0c57fe9416 to your computer and use it in GitHub Desktop.
# adapted from @hrbrmstr code
library(plotrix)
pie3D(c(34), start=pi/2, height=0.4, main="Happy Birthday!", col="chocolate")
lines(c(0, 0), c(0.4, 0.9), lwd=10, col="pink")
lines(c(-0.4, -0.4), c(0.5, 0.9), lwd=10, col="pink")
lines(c(0.4, 0.4), c(0.5, 0.9), lwd=10, col="pink")
points(c(0, 0.4, -0.4), c(0.9, 0.95, 0.95), pch=8, cex=1.5, col="red", lwd=8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment