The Final Exam 2/2 will be held on March 14, 2025, from 8:00 to 11:00 AM at the ICDI building. Total Score: 15% of 100% - 5%: Multiple-choice questions. - 10%: Answering questions, editing, or showing the code based on the given results. You are allowed to use your computer/iPad/Tablet to run the R program. However, you are not allowed to use the internet to search for solutions via search engines (e.g., Google) or generative AI (e.g., ChatGPT). You are not allowed to discuss anything in the testing room. You are allowed to bring and write notes on one A4 page (both sides).
Multiple Choices: ggplot2(Modify Plot)
Which function is used to modify text elements such as axis labels and titles in ggplot2?
Which argument in element_text() controls the text color?
What does face = 'bold' do in element_text()?
Which function is used to remove the legend from a ggplot?”
Which theme function applies a minimalistic design with no grid lines?
What does theme(panel.background = element_rect(fill = 'gray')) do?
Which argument in element_text() adjusts text rotation?
What does theme(plot.title = element_text(hjust = 0.5)) do?
Which function is used to change the font size of axis titles?
What is the default position of the legend in ggplot?
Which function is used to add annotations to a ggplot?
Which of the following correctly adds a text annotation at (x = 10, y = 20)?
What does annotate('rect', xmin = 2, xmax = 4, ymin = 3, ymax = 6, fill = 'blue', alpha = 0.3) do?
Which argument in annotate() controls text size?
Which argument in annotate('segment') specifies an arrow?
What does annotate('point', x = 5, y = 10, color = 'red', size = 3) do?
Which function is preferred for adding multiple text labels tied to data?
What does annotate('text', x = 50, y = 100, label = 'Important Point', color = 'red', fontface = 'bold') do?
Which function is used to highlight a region in ggplot?
What does annotate('segment', x = 2, xend = 5, y = 3, yend = 8, arrow = arrow()) do?