Using R and Shiny to create “Art”
One big strength of packages like shiny is the ability to easily vary parameters and view the results, especially in plots.
So here’s a small shiny app that I created to learn about reactivity, while also having fun.
The idea is simple. Vary many aspects of geom_segments in ggplot, and see what emerges. The things that I played with are canvas size, line origin and destination, line length, the angle and the colors.
Because it is art, I made the background black.
There were many experiments that didn’t appeal to me aesthetically. Others seemed very repetitive. The ones that seemed okay, I kept.
Take a look at the shiny app ShinySketch.
The code can be found on github.
To leave a comment
for the author, please follow the link and comment on his blog: Doodling with Data
offers daily e-mail updates
news and tutorials
on topics such as: visualization (ggplot2
), programming (RStudio
, Web Scraping
) statistics (regression
, time series
) and more...
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook