Quiz
This lesson is called Quiz, part of the R in 3 Months (Spring 2026) course. This lesson is called Quiz, part of the R in 3 Months (Spring 2026) course.
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
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!
Course Content
144 Lessons
You need to be signed-in to comment on this post. Login.