上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 367 下一页
摘要: 001、基础绘图 p <- ggplot(mtcars,aes(mpg,hp,colour=factor(cyl)))+geom_point() p ## 基础绘图 002、删除图例标题 p + theme(legend.title = element_blank()) ## 删除图例标题 003、 阅读全文
posted @ 2023-07-26 00:27 小鲨鱼2018 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 001、 ggplot(mpg, aes(displ, hwy)) + geom_point(aes(color = drv)) + coord_cartesian(xlim = c(5, 7), ylim = c(10, 30)) ## 设定x、y轴范围 002、 修改x轴范围 ggplot(mp 阅读全文
posted @ 2023-07-25 23:24 小鲨鱼2018 阅读(937) 评论(0) 推荐(0) 编辑
摘要: 001、 p <- ggplot(mpg, aes(x = drv)) + geom_bar() p ## 基础绘图 002、使用scale_x_discrete 选项修改离散标签名称 p + scale_x_discrete(labels = c("4" = " xxx ", "f" = " yy 阅读全文
posted @ 2023-07-25 23:08 小鲨鱼2018 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 001、 dat <- data.frame(a <- 1:20, b <- 1:20) p <- ggplot(data = dat, aes(x = a, y = b)) + geom_point() p ## 基础绘图 002、修改x轴刻度位置 p +scale_x_continuous(br 阅读全文
posted @ 2023-07-25 22:56 小鲨鱼2018 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 001、 dat <- data.frame(a = 1:5, b = 1:5) dat library(ggplot2) p <- ggplot(data = dat, aes(x = a, y = b)) + geom_point() ## 默认绘图 p 002、调整y轴刻度线标签的角度 p + 阅读全文
posted @ 2023-07-25 19:30 小鲨鱼2018 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 001、 dat <- data.frame(a = 1:5, b = 1:5) dat library(ggplot2) p <- ggplot(data = dat, aes(x = a, y = b)) + geom_point() ## 默认边框, 绘制散点图 p 002、利用theme(p 阅读全文
posted @ 2023-07-25 17:52 小鲨鱼2018 阅读(319) 评论(0) 推荐(0) 编辑
摘要: -h:使用易读性数字,比如 K, G单位。 001、 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 2G 3K 4K 1G [root@PC1 test02]# sort a.txt 1G 2G 3K 4K [roo 阅读全文
posted @ 2023-07-25 16:19 小鲨鱼2018 阅读(105) 评论(0) 推荐(0) 编辑
摘要: sort:-g选项:按照通用数值排序,支持科学计数法 001、直接使用sort [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 6.84017213908805e-10 6.27015779416403e-08 0.0 阅读全文
posted @ 2023-07-25 16:14 小鲨鱼2018 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test02]# ls a.txt index.txt [root@PC1 test02]# cat index.txt ## 索引文件 2 4 8 9 14 [root@PC1 test02]# cat a.txt ## 测试文件 001 002 003 004 00 阅读全文
posted @ 2023-07-25 11:54 小鲨鱼2018 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test04]# ls account adr [root@PC1 test04]# cat account ## 测试数据 张三|000001 李四|000002 [root@PC1 test04]# cat adr ## 测试数据 000001|10 000001| 阅读全文
posted @ 2023-07-25 11:45 小鲨鱼2018 阅读(89) 评论(0) 推荐(0) 编辑
上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 367 下一页