-
箱图-极端值检验查看全部
-
数据分散趋势的测量查看全部
-
数据集中趋势的测量查看全部
-
观测、变量、数据矩阵查看全部
-
如何获取帮助查看全部
-
调色包:RColorBrewer查看全部
-
数据特征查看全部
-
分类变量类型查看全部
-
数据变量和分类变量查看全部
-
#全局参数 par("bg")#背景颜色 par("col")#颜色 par("mar")#(bottom,left,right, right) par("mfrow") par("mfcol") par(mfrow = c(1,2)) hist(airquality$Temp) hist(airquality$Wind) par(mfrow = c(1,1)) boxplot(airquality$Temp)查看全部
-
hist(airquality$Wind, xlab = "wind") boxplot(airquality$Wind, xlab = "wind", ylab = "speed(mpc)") boxplot(Wind ~ Month, airquality, xlab = "wind", ylab = "speed(mpc)") plot(airquality$Wind, airquality$Temp) #使用with函数(数据集,函数) with(airquality, plot(Wind, Temp, main="Wind and Temp in NYC", type = "n")) with(subset(airquality, Month == 9), points(Wind, Temp, col = "red")) with(subset(airquality, Month == 5), points(Wind, Temp, col = "blue")) with(subset(airquality, Month %in% c(6,7,8)), points(Wind, Temp, col = "black")) #%in%c()指month在c范围内取值 fit <- lm(Temp ~ Wind, airquality) #在图上加线,回归线 abline(fit, lwd = 2) #让线在图中展示 legend("topright", pch = 1, col = c("red", "blue", "black"),legend = c("sep", "May", "Other")) #加上图例,topright放在右上方查看全部
-
数据分析注意问题查看全部
-
#RColorBrewer包,三类调色板:sequential,diverging,qualitative pal<-colorRamp(c("red","blue")) pal(0) pal(1) pal(0.5) pal(seq(0,1,len=10)) pal<-colorRampPalette(c("red","blue")) pal(0) pal(1) pal(0.5) pal(10) brewer.pal.info cols<-brewer.pal(3,"Greens") cols pal<-colorRampPalette(cols) pal image(volcano,col = pal(20)) display.brewer.pal(3,"Greens")查看全部
-
完整的数据分析流程查看全部
-
数据分析流程查看全部
举报
0/150
提交
取消