Skip to content
Coming soon: Ally. Your guide to the world of AI and R. Learn More →
R for the Rest of Us Logo

R in 3 Months (Fall 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.

Given the dataset below, what's the correct code to generate the plot above.

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

132 Lessons