上一页 1 ··· 91 92 93 94 95 96 97 98 99 ··· 367 下一页
摘要: 001、正常绘图,显示图例 library(ggplot2) bp <- ggplot(data=PlantGrowth, aes(x=group, y=weight, fill=group)) + geom_boxplot() ## 绘图 bp ## 显示绘图 绘图结果如下: 002、隐藏图例的标 阅读全文
posted @ 2023-03-23 17:22 小鲨鱼2018 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 001、直接绘图效果: library(ggplot2) bp <- ggplot(data=PlantGrowth, aes(x=group, y=weight, fill=group)) + geom_boxplot() ## 绘图 bp ## 显示绘图结果 绘图结果如下: 002、修改图例显示 阅读全文
posted @ 2023-03-23 17:14 小鲨鱼2018 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 001、 a、利用测试数据绘制箱线图 library(ggplot2) bp <- ggplot(data=PlantGrowth, aes(x=group, y=weight, fill=group)) + geom_boxplot() ## 绘图 bp ## 显示绘图结果 绘图结果如下: b、移 阅读全文
posted @ 2023-03-23 17:05 小鲨鱼2018 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 001、使用绘制散点图进行测试。 a、直接绘制散点图 x <- 1:10 y <- seq(1, 1000, 100) dat <- data.frame(x, y) ## 生成测试数据 ggplot(dat, aes(x, y)) + geom_point() ## 直接绘制散点图 绘图结果如下: 阅读全文
posted @ 2023-03-23 16:44 小鲨鱼2018 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 001、 利用绘制散点图进行测试 a、直接绘制散点图 x <- 1:10 y <- seq(1, 1000, 100) dat <- data.frame(x, y) ## 生成测试数据 ggplot(dat, aes(x, y)) + geom_point() ## 直接绘制散点图 绘图结果如下: 阅读全文
posted @ 2023-03-23 16:05 小鲨鱼2018 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 001、 (base) [root@PC1 test3]# ls ## 测试数据及脚本 a.txt test.py (base) [root@PC1 test3]# cat test.py ## 复制程序 import os os.popen('cp a.txt b.txt') ## windows 阅读全文
posted @ 2023-03-22 21:27 小鲨鱼2018 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 001、theme_classic() 主题用来去除背景 a、使用默认的背景 type <- c('A', 'B', 'C', 'D', 'E', 'F', 'G') nums <- c(10,23,8,33,12,40,60) df <- data.frame(type = type, nums 阅读全文
posted @ 2023-03-22 14:40 小鲨鱼2018 阅读(3066) 评论(0) 推荐(0) 编辑
摘要: 001、生成测试数据以及测试 library(ggplot2) x <- paste0("s", 1:16) y <- 4:19 dat <- data.frame(x, y) ## 生成测试数据框 dim(dat) head(dat, 3) ggplot(dat,aes(x,y))+ geom_p 阅读全文
posted @ 2023-03-22 11:15 小鲨鱼2018 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 001、 基础绘图 type <- c('A', 'B', 'C', 'D', 'E', 'F', 'G') nums <- c(10,23,8,33,12,40,60) df <- data.frame(type = type, nums = nums) ## 生成的测试数据框 df ggplot 阅读全文
posted @ 2023-03-22 10:49 小鲨鱼2018 阅读(1272) 评论(0) 推荐(0) 编辑
摘要: 001、 (base) [b20223040323@admin1 test]$ ls a.txt b.txt (base) [b20223040323@admin1 test]$ cat a.txt ## 测试数据 GENE=3BHSD 1 1 GENE=A3GALT2 1 1 GENE=A1BG 阅读全文
posted @ 2023-03-16 16:35 小鲨鱼2018 阅读(63) 评论(0) 推荐(0) 编辑
上一页 1 ··· 91 92 93 94 95 96 97 98 99 ··· 367 下一页