上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 407 下一页
摘要: 001、 # 创建一个多边形 df <- data.frame( x = c(1, 2, 2, 1, 1.26), y = c(1, 1, 2, 1.6, 1.26) ) df # 绘制多边形 ggplot() + geom_polygon(data = df, aes(x = x, y = y), 阅读全文
posted @ 2024-06-03 17:18 小鲨鱼2018 阅读(239) 评论(0) 推荐(0)
摘要: 001、frame.plot = T参数绘图 设置是否显示图边框 par(mfrow = c(1,2)) plot(1:10, cex = 3, pch = 19, frame.plot = T, main = "111") ## 显示图边框 plot(1:10, cex = 3, pch = 19 阅读全文
posted @ 2024-06-01 19:59 小鲨鱼2018 阅读(163) 评论(0) 推荐(0)
摘要: 001、测试01 library(ggplot2) ggplot(data.frame(x = c(1, 3), y = c(1, 3)), aes(x = x, y = y)) + geom_point() + geom_curve(aes(x = 1.5, y = 2.5, xend = 2.6 阅读全文
posted @ 2024-05-31 16:26 小鲨鱼2018 阅读(120) 评论(0) 推荐(0)
摘要: 001、打开地图 002、 地图开放平台 003、选开发者频道 004、开发者工具 → 坐标拾取器 。 阅读全文
posted @ 2024-05-31 14:14 小鲨鱼2018 阅读(5934) 评论(0) 推荐(0)
摘要: 001、windows中安装R包,需要编译,调用Rtools报错如下: collect2.exe: error: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'rgdal' 。 阅读全文
posted @ 2024-05-30 17:32 小鲨鱼2018 阅读(1480) 评论(0) 推荐(0)
摘要: 001、R语言windows中安装R包出现如下报错 Error in system(paste(MAKE, p1(paste("-f", shQuote(makefiles))), "compilers"), : 'make' not found 002、确认是否安装Rtools install.p 阅读全文
posted @ 2024-05-30 14:35 小鲨鱼2018 阅读(1466) 评论(0) 推荐(0)
摘要: 001、R语言read.csv函数发生如下报错: 错误于type.convert.default(data[[i]], as.is = as.is[i], dec = dec, : '<c9>Ϻ<a3>'多字节字符串有错误 002、文件内容 003、 正确做法 > dat2 <- read.csv( 阅读全文
posted @ 2024-05-30 10:35 小鲨鱼2018 阅读(3096) 评论(0) 推荐(0)
摘要: 001、 移除后缀 [root@PC1 test2]# a="a.csv.map.txt" ## 测试变量文件名称 [root@PC1 test2]# echo $a a.csv.map.txt [root@PC1 test2]# echo ${a%.*} ## 移除后缀使用的符号是% a.csv. 阅读全文
posted @ 2024-05-26 23:51 小鲨鱼2018 阅读(847) 评论(0) 推荐(0)
摘要: 001、简单测试 [root@PC1 test2]# ls [root@PC1 test2]# a="abc" ## 生成一个测试变量 [root@PC1 test2]# echo $a ## 输出变量方式1 abc [root@PC1 test2]# echo ${a} ## 输出变量方式2 ab 阅读全文
posted @ 2024-05-26 23:38 小鲨鱼2018 阅读(68) 评论(0) 推荐(0)
摘要: 001、方法1(基本逻辑是先提取每组的第一行和第四行; 然后将没两行转换为1行;最后将第二行再减去第一行) [root@PC1 test2]# ls a.txt [root@PC1 test2]# cat a.txt ## 测试数据 2.699350 2.699359 2.699940 2.6999 阅读全文
posted @ 2024-05-26 22:49 小鲨鱼2018 阅读(48) 评论(0) 推荐(0)
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 407 下一页