摘要: 主要内容: 箱线图 散点图矩阵 气泡图 绘制函数图像 1. 箱线图 boxplot( ) a <- boxplot(mtcars$wt) a a$stats boxplot(wt~vs,data = mtcars) boxplot(wt~vs*gear,data = mtcars, col=2:7) 阅读全文
posted @ 2025-01-23 16:02 百里屠苏top 阅读(33) 评论(0) 推荐(0)
摘要: 主要内容: 条形图 饼图 直方图 核密度图等 1. 条形图 barplot() 1.1 调用数据mtcars mtcars$gear结果: > mtcars$gear [1] 4 4 4 3 3 3 3 4 4 4 4 3 3 3 3 3 3 4 4 4 3 3 3 3 3 4 5 5 5 5 5 阅读全文
posted @ 2025-01-23 11:55 百里屠苏top 阅读(15) 评论(0) 推荐(0)
摘要: 主要内容: plot函数 1.数据——mtcars(R 内置数据集) mtcars结果: > mtcars mpg cyl disp hp drat wt qsec vs am gear carb Mazda RX4 21.0 6 160.0 110 3.90 2.620 16.46 0 1 4 4 阅读全文
posted @ 2025-01-23 10:16 百里屠苏top 阅读(27) 评论(0) 推荐(0)