Validity, Reliability, and Objectivity

Data Camp

Please finish up the following module

LinkDue byRequiredTaskModuleChapters
Week 29/6/22Introduction to the TidyverseData wrangling
Data visualization
Grouping and summarizing
Types of visualizations

R Task

Please follow the directions listed below

  1. Download the task files

  1. Unzip them on your computer

  2. Open Introduction to the Tidyverse install.R and run everything inside of it

  3. Open the file Introduction to the Tidyverse walkthrough.Rmd in RStudio

  4. Click on Run Document, and then go through the walkthrough preferably in a larger window. To see how to do this, open the file Introduction to the Tidyverse loading.gif in the web browser of your choice or by another method to view the animated gif

  5. After finishing the walkthrough, open the mostly empty script to Introduction to the Tidyverse script.R and load up the tidyverse library. Please be aware that the needed libraries may not be provided for you in the future

  6. Keeping the hashtag, erase the words at the top and replace them with your full name

  7. Load the diamonds1 data set in the same way as starwars was shown in the walkthrough. Then recode the following values in the cut column in a new column named cut_recoded

    • Ideal with 5
    • Premium with 4
    • Very Good with 3
    • Good with 2
    • Fair with 1

    and everything else with 0. Your output should consist of two columns - the unique original values and their respective recoding.

  8. Save the file by adding your first initial and last name to the beginning of the filename. For example, my submission would be aroy Introduction to the Tidyverse script.R

  9. Submit the script to Introduction to the Tidyverse in the Submission Portal on eCampus

esquisse

This is optional, but will be helpful for many of you. If you would like to explore ggplot2 using a more drag and drop approach, try the R package esquisse


After downloading and unzipping the file above, open up RStudio and run

install.packages("esquisse", dependencies = TRUE)

You’ll also need to install the example data set palmerpenguins by running

install.packages("palmerpenguins", dependencies = TRUE)

If prompted, you may receive the option to restart RStudio. This is up to you, but unless you’re already doing something else in RStudio, it can’t hurt. After both install, run the following command

esquisse::esquisser(palmerpenguins::penguins)
esquisse with palmerpenguins

If you want to use your own data set, run the following

esquisse::esquisser()
esquisse with palmerpenguins

Additional resources

Creating plots without coding @ RPubs

Esquisse R Package @ Little Miss Data

Tableau-like Drag and Drop GUI Visualization in R @ Towards Data Science


  1. Comes from the ggplot2 package which is also in tidyverse ↩︎