ggplot(mtcars, aes(x = wt, y = mpg)) + #创建一个绘图对象,将数据框mtcars传递给函数,然后设置作为x值和y值的列 geom_point(col = '#0093E9') #向图像中添加一层点 1. 2. ggplot(data = NULL, aes(x = mtcars$wt, y = mtcars$mpg)) + #此方法用于传入相应的向量,但该包的设计是基于数据...