摘要: 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 阅读(3067) 评论(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) 编辑