R语言基础
我电脑上装的有R和Rstudio,并且有在经常使用。
绘图
plot(rnorm(50))
绘制50个随机数的散点图
Rplot.png
boxplot(iris$Sepal.Length~iris$Species,col = c("lightblue","lightyellow","lightpink"))
箱图boxplot.png
设置字体大小
1.用Rproject管理工作目录
getwd.png
2.显示文件列表
显示默认路径(工作目录)
dir.png
3.加减乘除
加减乘除.png
4.赋值
·<-`
5.删除变量
rm
删除变量.png
6.列出历史命令
history()
history.png
7.清空控制台
快捷键ctrl+l
初识R语言.png