练习: 经过分组、分面和填色的价格/克拉
Create a scatter plot of the price/carat ratio of diamonds. The variable x should be assigned to cut. The points should be colored by diamond color, and the plot should be faceted by clarity.
给出的参考图是这样的:
ggplot(aes(x=cut,y=price/carat,color=color),data=diamonds)+
geom_point()+
facet_wrap(~clarity)+
scale_color_brewer(type="div")
ggplot(aes(x= cut, y= price/carat),data = diamonds)+
geom_point(