Question
Which R function is commonly used to save a ggplot2 graphic to a file?
Select an option. Your answer will be checked instantly.
Correct Answer: C. ggsave()
Explanation:
ggsave() saves the current or specified ggplot object in formats such as PNG, PDF, or SVG.
Dimensions and resolution can be controlled explicitly.
Leave a Reply