Skip to content

Instantly share code, notes, and snippets.

@sckott
Created October 31, 2012 22:55
Show Gist options
  • Save sckott/3990485 to your computer and use it in GitHub Desktop.
Save sckott/3990485 to your computer and use it in GitHub Desktop.
Run the code, then click three times to cut a piece out of your pumpkin
# From Jeff Joy
par(bg=1)
plot(c(0,0), cex=0, xlim=c(-1,1), ylim=c(-1,1))
X <- runif(100,-1,1)
Y <- runif(100,0,1)
M <- rchisq(100,1)/20
points(Y~X, cex=M, pch=19, col=colors()[1])
points(0,-0.5, pch=19, col=colors()[498],cex=20)
for (i in 1:4){polygon(locator(3),col=7)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment