Skip to content
R for the Rest of Us Logo

R in 3 Months (Spring 2025)

Week 3 Project Assignment

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Assignment example:

Your Turn

For this week, we want you to make some data viz with your data. We're not looking for something beautiful or perfect! We want to see you understand how to use ggplot2 and which parts of your dataset you're interested in visualizing. Here's an example of what we're looking for.

Here are the steps for this week's assignment:

  1. Open your project from the Week 2 assignment.

  2. Again, take some time to come up with three questions about your dataset. They don't need to be different from the questions you created last week, but they need to be possible to answer using data visualization.

  3. Create a new section called “Data visualization” and add your three questions there, as comments.

  4. Under each question, write the right code to produce the visualization intended.

  5. Once you've completed your work, compress your project_assignment folder and upload it to the form below.

  6. If you have any specific questions, add those in the form below as well.

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Jonathan Brown

Jonathan Brown • March 21, 2025

Hi, The example link above does not connect

Gracielle Higino

Gracielle Higino Coach • March 21, 2025

Thank you for noticing, Jonathan! I fixed the link now.

Queeneth Onwuka

Queeneth Onwuka • March 27, 2025

I observed that you didn't use "mapping". What is as.factor?

Gracielle Higino

Gracielle Higino Coach • March 27, 2025

Hi Queeneth! The example assignment video is just for you to have an idea of how you would go by doing it. The code is never relevant, I often do things in different ways to simulate how a person learning R would do it [= In this case I don't use mapping because the ggplot() function recognizes the second argument as the mapping by default and we don't need to be explicit in this case. If you're just starting learning R, being explicit with the arguments is a good practice, though! And as.factor() is a Base R function to convert a variable into a factor.

Course Content

127 Lessons