Created
October 31, 2012 22:55
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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