Vidyalelo
R Programming · Q22

Data Visualization with ggplot2

Programming · R Programming · question 22

Q22

In ggplot2, how do you customize the appearance of the legend title?

A.
labs(legend.title = "New Title")
Answer
B.
legend_title("New Title")
C.
theme(legend.title = element_text("New Title"))
D.
scale_fill_discrete(name = "New Title")

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board