kandinsky: Turn any dataset into a Kandinsky painting

Description Usage Arguments Details Note See Also Examples

Description

A function to turn any numeric vector in the range 0 to 1, or a given dataset, into a Kandinsky-like painting, with a few common Kandinsky shapes, e.g. rectangles and circles, drawn with wrappers around the grid package. If the input is a dataset, the function will first convert it into a numeric vector in the range 0 to 1.

Usage

1
kandinsky(df = NULL, rv = runif(1000))

Arguments

df

a dataset (tested: ts object, data.frame, tibble)

rv

a numeric vector in the range 0 to 1, if df is not NULL, default is runif(1000)

Details

In order to convert a dataset (ts object, data.frame, tibble) into a numeric vector in the range 0 to 1, the function first converts the dataset character or factor columns into numeric columns, then normalizes all (now numeric) columns to be in the 0 to 1 range, then vectorizes the dataset into a single vector by row.

Note

This function is currently tested on a Windows 7 machine only

See Also

http://giorasimchoni.com/

Examples

1

gsimchoni/kandinsky documentation built on May 14, 2019, 2:42 p.m.