,iris[,3],col=iris[,5]) #以iris表格第一列作为x轴,第三列作为y轴,根据品种来绘制不同颜色> text(6.5,4,label="hello") #添加文字,并加上坐标图片三...、ggplot2绘图(最常用的绘图R包)⚠️⚠️首先必须 library(ggplot2)1)入门:映射> ggplot(data = iris)+ geom_point(mapping =...data = iris)+ geom_point(mapping = aes(x = Sepal.Length,y = Petal.Length, color = Species))图片Q1:‼️‼️如何指定映射的颜色...)图片ggplot() 的映射可以在全局使用,geom_function的映射只能在局部使用7)柱状图/直方图 (y轴无需映射)ggplot(data = diamonds) + geom_bar(...mapping = aes(x = Species, y = Sepal.Width,fill = Species)) + geom_boxplot()+ geom_jitter()图片b)堆叠直方图