knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "figure/", fig.height = 1, fig.height = 1 )
Want to create abstract artworks in the style of Piet Mondrian instantly? Here we throw in some bright colors and revitalized energy of the grandmaster in two distinct styles based on his time in Paris and New York, all generatable with random numbers of your choice on the backend of ggplot2.
devtools::install_github("yanhann10/mondrianify")
library("mondrianify") #make a random dataframe including two columns x and y df=data.frame(x=sample(10,3),y=sample(10,3)) mondrian_paris(df) mondrian_nyc(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.