R learning -Base Graphics
来源:互联网 发布:主升浪选股软件 编辑:程序博客网 时间:2024/05/29 13:45
本文主要针对R语言中强大的图像质量呈现,以下为主要内容介绍:
1、在接触到一个新的数据集时,如何想要掌握数据的全貌的话,输入以下内容:dim(),names(),head(),tail(),summary()
2、针对plot() 函数,如果数据集中存在两个字段,则默认形成散点图
3、在建立散点图的时候,plot(cars
在此基础上,针对x,y轴分别设置名称,plot(x=cars
4、在plot 函数中,可以用plot(cars,mian=”My Plot”),可以用cars中的字段内容默认形成散点图,同时将图命名为 my plot,此时名称在上面,如果用sub=”My plot subtitle “此时图片名称在下面
5、plot(cars,col=2) 将散点图的颜色变成红色。
6、针对plot(cars,xlim=c(10,15))将x轴上的值limit 在10-15内,
7、针对plot(cars,pch=2),表示将散点图的标记修改成三角形的图标
8、形成箱线图,boxplot(formula=mpg ~ cyl,data=mtcars)
9、hist(mtcars$mpg) 针对mtcars 中的mpg 字段,形成直方图
0 0
- R learning -Base Graphics
- learning R with swirl-Base Graphics
- R Programming: Part 4 - Simulation & Base Graphics
- [R] Expression in R graphics
- R base常用函数
- Learning about Android Graphics Subsystem
- Learning about Android Graphics Subsystem
- Linux上安装R-r-base-dev
- R语言System {base}函数
- machine learning in R
- Learning R学习笔记
- deep learning with R
- Learning R---stringr
- Learning R---dummy
- Learning R---Rwordseg
- Learning R---dplyr
- Learning R---randomForest
- Learning R---SMOTE
- 练习:利用迭代器写一个注册登录功能
- 迭代器使用注意事项
- DSL pppoe服务器搭建
- 谷歌•亚马逊•Facebook等创始人说创业该从小处着手
- 51Nod1092 回文字符串-----求最长公共子序列
- R learning -Base Graphics
- js 使用正则 邮箱
- HDOJ4029 不同子矩阵的个数
- Dhaka2014 I Volume of Revolution (积分求体积)
- CSU 1402 Fibonacci Multiply
- ZOJ3816--Generalized Palindromic Number(DFS)
- Java栈与堆
- 黑马程序员——33集合
- plsql登录时报错:Initialization error orcle not properly installed