网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

R 绘制箱线图的绘制方法(plot、boxplot、qplot)

时间:2024-10-13 03:08:47

1、#读取数据集以ggplot2中的diamonds数据集为例。library(ggplot2)sample1=diamonds[sample(nrow(diamonds),100),]attach(sample1)#当x为分类变量时,plot函数可自动绘制出箱线图plot(cut, price)

R 绘制箱线图的绘制方法(plot、boxplot、qplot)R 绘制箱线图的绘制方法(plot、boxplot、qplot)
© 一点知道