Question
What is the difference between mapping color inside aes() and setting color outside aes() in ggplot2?
Select an option. Your answer will be checked instantly.
Correct Answer: D. Inside maps color to data, while outside assigns one fixed color
Explanation:
Mapped aesthetics vary across observations and usually generate a legend.
A fixed setting applies the same visual property to all relevant marks.
Leave a Reply