Starting from a extremely simple plot, and following a well guided path, you can end making beautiful images like this one:įurthermore, you can learn also ggplot2 while you do art. I recently did this project for DataCamp to show how easy is to do art with R and ggplot. I love R and the sense of wonder of how just one or two lines of code can create beautiful and unexpected patterns. Most of them are made with ggplot2 package. Geom_point(alpha=.1, shape=20, size=1, color="black")+Ī curve generated by a simulated harmonograph (more info here):Ī chord diagram of a 20×20 1-matrix (more info here):ĬhordDiagram(matrix(1, 20, 20), symmetric = TRUE,Ĭol="black", transparency = 0.85, annotationTrack = NULL) Theme_void()+theme(legend.position="none")Ī x-y scatter plot of a trigonometric function on R 2 (more info here): Rbind(-.)%>%ggplot(aes(x, y))+geom_polygon()+theme_void()Ī recurrence plot of Gauss error function (more info here): This other is based on Fermat’s spiral (more info here): The first one is a cardioid inspired in string art (more info here): In this post I have compiled a few of them. Now that Twitter allows 280 characters, the code of some drawings I have made can fit in a tweet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |