Skip to content
R for the Rest of Us Logo

R in 3 Months (Spring 2026)

Quiz

Test your knowledge with the questions below. Answers are not scored and do not affect your certification at the end of the program, so feel free to try as many times as you need. If you have any questions, don't hesitate to use the comments field or to contact Gracielle by email.

Quiz

1.

What's the correct code to generate the plot above, given the dataset below:

example_tbl <- tibble(category = c("A", "B", "C", "D"),  
			   value = c(10, 15, 8, 20))

This code produces a very similar plot, but with a different x axis title.

This code produces a very similar plot, but with a different x axis title.

Options A and B produce a very similar plot, but with a different x axis title;

Option D produces the correct axis titles, but the bars are not ordered because arrange() does not rearrange the levels of the factor variable, just the order of the rows in a dataset.

This code produces the correct axis titles, but the bars are not ordered because arrange() does not rearrange the levels of the factor variable, just the order of the rows in a dataset.

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

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

Course Content

144 Lessons