Module 13: animation package and GIF in RStudio

 

module13.R

Tyler House

2023-04-06

#Module 13 R Programming
#install.packages("animation")
##Example Animation provided by Dr Friedman

library(animation)

## Warning: package 'animation' was built under R version 4.2.3

friedman <- saveGIF({
 
for (i in 1:10) plot(runif(10), ylim = 0:1)
})

## Output at: animation.gif

#My Animation
tyler
<- saveGIF({
 
 
for (i in 1:50) plot(runif(50), ylim = 0:1)
 
})

## Output at: animation.gif

##I generated my own visual based off the framework provided initially. I found this to be a very interesting concept within R
#Aditionally, I have some questions regarding more of the practical usages of a randomized GIF animation other than for decoration.
#Are there kinds of analyses that would use visuals such as this? And if so, why are they more effective than other visuals in that specific case.

This was the example given by Dr. Friedman, which is moderately populated and looping by use of for{}

This is my example which is much more densely populated than the example given by Dr Friedman, but showcases the same ideas and usages as what was provided. Super Interesting Stuff


Comments

Popular posts from this blog

R Package: pfStat

Module 7 Assignment

The Tampa Feasibility Report featuring R based Visualizations