knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "figure/",
  fig.height = 1,
  fig.height = 1
)

DIY Piet Mondrian Artwork

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.

Installation of the the development version

devtools::install_github("yanhann10/mondrianify")

Usage

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)

Sample output



yanhann10/mondrianify documentation built on May 29, 2019, 12:18 p.m.