科学网

 找回密码
  注册
R语言sp包学习笔记(2)——Chapter3 Visualizing Spatial Data
杨建勋 2018-1-27 21:35
R的作图系统可以认为是基于两个系统。 1)传统的制图系统,允许逐步添加allow for incremental addition。 2)基于网格的制图系统(build upon grid ),不允许逐步添加。主要的例子就是 Trellis Graphic system,由lattice包提供。ggplot2也属于这一制图系统。 3.1 The traditional plot system 3.1.1 Plotti ...
个人分类: R语言|8852 次阅读|没有评论
R语言sp包学习笔记
杨建勋 2018-1-20 19:09
sp包中定义几个重要的类别(class) 1. Spatial Objects,只有两个成分(slots): (1) 边界(bounding box) ,数字坐标的矩阵( a matrix of numerical coordinates with column names),表明这个空间数据所覆盖的范围。大部分情况下是根据子类别(subclass)自动生成的,不需要手动取标明。 (2) 坐标参 ...
个人分类: R语言|13838 次阅读|没有评论
R语言数据清洗
杨建勋 2018-1-10 18:56
1. 创建新变量 mydata - transform(mydata, sumx = x1 + x2, meanx = (x1 + x2)/2) 2. 变量重编码 (1)within函数 leadership - within(leadership, {   ...
个人分类: R语言|2961 次阅读|没有评论

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-3-29 22:54

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部