Weekly Coding Checkup 4

A Semester Project made by Custom Designed Activities

We continue working on the Dr. B & Class project. In this first part of the semester, you will apply what we learned in class in a set of tasks and scenarios. Please remember that it is important that the code that you submit is your own code and not somebody else work. It is fine to make mistakes but only by practicing in R you can get a better grasp of the software.

I also want you to try building your document as an official report for a potential company (Dreaming Diamonds LLC) for which you are getting to know and explore the diamonds dataset (e.g., spend time on storytelling, commenting results and providing insights and conclusions when possible).

Summary of this week tasks:

This week we will switch gears and move from the manipulations to the visualizations world. Once you know how to import data, manipulate them, you need to learn how to explore them through the power of visualizations.

Creating beautiful and meaningful visualizations is a critical data analytics skill and can lead to interesting insights. So, let’s practice what we covered this week:

• Creating basic charts

Tip

Use the diamonds dataset to solve all the below tasks. I have subset it to 15k observations to make faster visuals

Q1a:

Create a bar chart that shows the cut variable distribution on the x axis. (1 point)

Q1b:

Spend time to interpret your chart: What do you notice? Why is it important? Force yourself to write at least 2 insightful sentences about the above chart. (3 points)

Q2a:

Create a boxplot of the carat (y) and clarity (x) variables. Fill the boxes based on the clarity column (2 points).

Q2b:

Spend time to interpret your chart: What do you notice? Why is it important? Force yourself to write at least 2 insightful sentences about the above chart. (3 points)

Q3a:

Create a scatterplot between the table (y) and depth (x) variables. Assign a different shape to each diamonds’ cut (2 points).

Q3b:

What do you think about this chart?(1 points)

Q3c:

Now change the chart and instead of using a different shape for each diamonds’ cut, use a different color for each diamonds’ cut (1 point).

Q3d:

Spend time to interpret your chart: What do you notice? Why is it important? Force yourself to write at least 2 insightful sentences about the above chart. (3 points)

Q4a:

Create a violin chart that shows the price variable distribution on the y axis by cut (x axis) and use different color for each diamonds’ cut (2 points).

Q4b:

Spend time to interpret your chart: What do you notice? Why is it important? Force yourself to write at least 2 insightful sentences about the above chart. (3 points)

Q5:

Complete the following (5 points):

  1. Create a smoothing line plot between the carat (y) and x (x) variables.
  2. Assign a different size to each diamonds’ price.
  3. Assign a different color to each diamonds’ color .

Q5b:

Spend time to interpret your chart: What do you notice? Why is it important? Force yourself to write at least 2 insightful sentences about the above chart.(3 points)

Q6a:

Complete the following (4 points):

  1. Create a area plot between the carat (y) and price (x) variables.
  2. Assign a different color to each diamonds’ cut.
  3. Make sure the area is filled with color.

Q6b:

Spend time to interpret your chart: What do you notice? Why is it important? Force yourself to write at least 2 insightful sentences about the above chart.(3 points)

🛑 Don’t Click Submit Just Yet 🚧

Please read carefully the below information:

  • Once you have completed all the coding questions, and your confident in your work, copy and paste your responses from the chunk into the form fields below each question.

  • You are responsible for correctly coping and pasting only the required code to solve each question. We will grade only what you have submitted!

  • We will only grade 1 submission per student so do not click Submit until you are confident in your responses.

  • By submitting this form you are certifying that you have followed the academic integrity guidelines available in the syllabus. The code and answers submitted are the results of your work and your work only!

  • Make sure you have completed all the questions and included all the required personal information (e.g., full name, email, zid) in the respective form’s fields.

  • Now you are ready to click the above “Submit” button. Congrats you have completed your weekly coding check up!!!