Question: Which code snippet will make all of the bars in the plot have different colors based on their heights? 1 point ggplot(data = buildings) +
Which code snippet will make all of the bars in the plot have different colors based on their heights? 1 point ggplot(data = buildings) + geom_bar(mapping = aes(x = construction_year)) + color(height) ggplot(data = buildings) + geom_bar(mapping = aes(x = construction_year, color=height)) ggplot(data = buildings) + geom_bar(mapping = aes(x = construction_year)) + color("height") ggplot(data = buildings) + geom_bar(mapping = aes(x = construction_year), color=height)
Step by Step Solution
There are 3 Steps involved in it
The correct code snippet that will make all of the bars in the plot have ... View full answer
Get step-by-step solutions from verified subject matter experts
