ggplot(d,aes(x, y, colour = group1)) +
#基本函数:设定的是图的x轴,y轴,“美学特征”。...ggplot(diamonds2, aes(x = cut, y = price,colour = cut)) +
#添加颜色,不同cut方式显示不同颜色
geom_boxplot()
?...)
#将y轴分开处理
?...,
breaks=(seq(0,7,by = 1)))+
#scale_y_continuous(y轴标题,设置坐标轴原点,y轴范围,Y轴刻度间隔)
ggtitle...#设置图片背景;theme_bw()为传统的白色背景
theme(axis.text.x = element_text(angle = 45, hjust = 1))+
#X坐标轴刻度标签属性