Supplement 1. Sample R code of all analyses in the manuscript in addition to R code and instructions for computing mantel correlograms.
收藏DataCite Commons2020-09-03 更新2024-07-27 收录
下载链接:
https://wiley.figshare.com/articles/dataset/Supplement_1_Sample_R_code_of_all_analyses_in_the_manuscript_in_addition_to_R_code_and_instructions_for_computing_mantel_correlograms_/3560529
下载链接
链接失效反馈官方服务:
资源简介:
File List sample r.code for analyses.r (MD5: 3ad040a4b47e5c38250d884d848b20b4) autocorrelation_instructions.txt (MD5: 6a45be561fc291f0b839037e41071cc3) dist.r (MD5: 09ad5d0540934a9439460470338a91b3) lower.r (MD5: 0aed5dacd78f61faf9c1254b5028dc2f) mgram.r (MD5: 045af1702d206ccd42ad0e8820adbca5) read_write.r (MD5: 09e1b8304a844e26745dda0993afa72e) xy_t.r (MD5: 90931395a8b9eca68d6eee94965d7d73) Description sample r.code for analyses.r contains r code for all analyses in the manuscript. autocorrelation_instructions.txt contains instructions for computing mantel correlograms read_write.r reads the originally formatted path windows and selects the x, y and decimal days columns, writes it to a new file. xy_r.r splits the dataset into two -- one with x and y, and one with decimal days dist.r calculates Euclidean distance on the x,y and the decimal days, creating matrix of distance between points, and matrix of time apart for points lower.r turns this distance into a lower triangular matrix (needed for mgram) mgram.r runs the mantel correlogram for each window with a step size of one day, and writes the results to .csv files
### 文件清单
本数据集包含以下用于数据分析的R代码样本文件(均附带MD5校验值):analyses.r(MD5: 3ad040a4b47e5c38250d884d848b20b4)、autocorrelation_instructions.txt(MD5: 6a45be561fc291f0b839037e41071cc3)、dist.r(MD5: 09ad5d0540934a9439460470338a91b3)、lower.r(MD5: 0aed5dacd78f61faf9c1254b5028dc2f)、mgram.r(MD5: 045af1702d206ccd42ad0e8820adbca5)、read_write.r(MD5: 09e1b8304a844e26745dda0993afa72e)、xy_t.r(MD5: 90931395a8b9eca68d6eee94965d7d73)
### 文件功能说明
analyses.r:收录本论文所有数据分析所用的R语言代码。
autocorrelation_instructions.txt:包含曼特尔相关图(Mantel correlogram)的计算操作指南。
read_write.r:读取原始格式的路径窗口数据集,筛选出x、y坐标与十进制天数列,并将筛选后的数据写入新文件。
xy_t.r:将原始数据集拆分为两个子集,其一包含x、y坐标数据,其二包含十进制天数数据。
dist.r:基于x、y坐标与十进制天数计算欧氏距离(Euclidean distance),分别生成点对间的空间距离矩阵与时间间隔矩阵。
lower.r:将上述生成的距离矩阵转换为下三角矩阵(lower triangular matrix,为mgram.r所需的输入格式)。
mgram.r:以1天为步长,对每个窗口执行曼特尔相关图分析,并将分析结果导出为.csv格式文件。
提供机构:
Wiley
创建时间:
2016-08-10



