Skip to content

Instantly share code, notes, and snippets.

@coleoguy
Created March 9, 2016 22:48
Show Gist options
  • Save coleoguy/606c0aabb39d55662a4d to your computer and use it in GitHub Desktop.
Save coleoguy/606c0aabb39d55662a4d to your computer and use it in GitHub Desktop.
blog.part2
# 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