UM-R-for-EnvSci-Registered-Student-2021 / wk07-Tidytuesday-commentary

Repo for comentary on this week's twitter #TidyTuesday posts
0 stars 0 forks source link

wk07-tidyTuesday-commentary-AD #6

Open aura-diaz opened 2 years ago

aura-diaz commented 2 years ago
  1. Most of the submissions that I looked at it for this #tidyTuesday were made using R scripts (*.r) with the exception of this one in which an R script is used to process the data and Java is used to produce the animated figure. I'd have liked to look at the java code; however, I could not find it in the post
  2. These two codes (ultra_running.R and SC_Ultra.R) load a library called camcorder. It is supposed to allow the user to generate a video recorder of the plot(s). Sadly, I was not able to identify in which part of the code is this library being used. I was wondering if someone can have a look at the codes and let me know
  3. I observed that a function was written inside the code from line 85 to 99 (click here for code). I'm just curious why the user chose to do this. Since the function is inside the code, it can't not be used or called in another script. I found also very creative in this code how an empty plot was created (line 130 to 149) to generate the title and caption of the figure
  4. This plot (click here to see the plot)is a good example of how code designed to plot a particular data set can be used and adapted to visualize different data sets (click here for original code and plot and click here for adapted code)
  5. It is interesting how the package here is not loaded along with the other libraries in the code, but instead is directly called/used within the script. For example: line 184 image <- image_read(here::here("running-man-color3.jpg")). The plot created by this code was very neat
  6. I though it was worth mentioned that I finally saw in this rmarkdown in line 34 the $ symbol being used to access the variables. We learned it in the first or second class