Created
March 9, 2016 22:48
-
-
Save coleoguy/606c0aabb39d55662a4d to your computer and use it in GitHub Desktop.
blog.part2
This file contains 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
# this time lets set the axis limits to 1:100 | |
plot(0, 0, col = "white", xaxt = "n", yaxt = "n", xlab = "", ylab = "", xlim=c(0,100), ylim=c(0,100)) | |
# now lets try printing a bunch | |
x <- sample(1:100, size = 100, replace = T) | |
y <- sample(1:100, size = 100, replace = T) | |
fl.col <- viridis::viridis(100) | |
for(i in 1:100){ | |
flower(x = x[i], y = y[i], colx = fl.col[i], cex.x = 1, cex.y = 1.5, cex.f = 1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment