Posts

Showing posts from April, 2025

Module # 13

Image
Your assignment: Create a simple animation and discussion the result in your blog posting.  Reference to Yihui Xie's and animation R package website, click  here . A note, his package now available via CRAM repository and not GitHub.  For Bryan's blog posting on Animation in R, click  here   A note: In order to post your work on blog, you need to save your animation. The code for saving the image you created in R is as follow: saveGIF({     for (i in 1:10) plot(runif(10), ylim = 0:1) }) Working on this assignment was incredibly interesting. Before this module, I had no idea we could create animations through R studio.  Below is an animation for the code that was given for this assignment.  > saveGIF({ + for (i in 1:10) plot(runif(10), ylim = 0:1) + }) Now I will focus on my rendition of an animation through R.  The first animation I created was a relatively simple one where I demonstrated an investment account after a cons...

Module # 12

Image
  Your assignment is to create your first visual Social Network analysis. You can select from any two platforms you feel more comfortable with. The first is called  NodeXL Links to an external site. . It is based on Microsoft Excel support platform. To download NodeXL package for Microsoft Excel click  here Links to an external site.  (Links to an external site.) Links to an external site. . Make sure you have Microsoft Excel in your computer. For full documentation on how to use NodeXL, click  here Links to an external site.  (Links to an external site.) Links to an external site. . ( https://www.smrfoundation.org/nodexl Links to an external site. ) The second option is using Rstudio. In my presentation, I used ggnet2: network visualization with ggplot2. The creator of this page is  Ehsan Aghaei.  (Links to an external site.) Links to an external site.  You can find the full documentation on his code o...

Module # 11 assignment

Image
  Your assignment for module # 11 is to review   Dr. Piwek posting on Tufte and  C. Minard in R  http:// Links to an external site. and see if you can generate  one  of the visualization he discussed in his post that include: i. Marginal histogram scatter plot ii. Dot-dash plot in ggplot2 iii. Dot-dash plot in lattice Or  any one you like the best.  After installing the packages, I get a library that looks like this: > library(CarletonStats) > library(devtools) > library(epanetReader) > library(fmsb) > library(proto) > library(RCurl) > library(reshape) > library(reshape2) > library(ggplot2) > library(ggthemes) > library(latticeExtra) > library(MASS) > library(PerformanceAnalytics) > library(psych) > library(plyr) > library(prettyR) > library(plotrix) After plotting the given code below, I get a PDF that looks like this: This is a time series plot that shows the budget expenditures over the years....