当前位置:网站首页>R语言实战应用案例:论文篇(一)-特殊柱形图绘制
R语言实战应用案例:论文篇(一)-特殊柱形图绘制
2022-08-10 12:38:00 【格图洛书】
今天来重复一下《NEMJ》论文[1]中的这张图(Figure1A)!

首先,安装与载入用到的R包:
install.packages("ggplot2")
library(ggplot2)再来创建做图用到的数据。注意我们创建的虚拟数据为计算后的,而非原始数据。
mydata <- data.frame(
response = c("Stringent complete response", "Complete response", "Very good partial response",
"Partial response"),
percentage = c(0.327, 0.067, 0.194, 0.042)
)
mydata
为了方便后续做图,修改了一下分类变量的组别顺序。
mydata$response <- factor(mydata$response , levels = c("Stringent complete response", "Complete response",
边栏推荐
猜你喜欢

【目标检测】小脚本:提取训练集图片与标签并更新索引

一个 CRM One Order Application log 的单元测试报表

M²BEV: Multi-Camera Joint 3D Detection and Segmentation with Unified Bird’s-Eye View Representation

“68道 Redis+168道 MySQL”精品面试题(带解析)

Ethernet channel 以太信道

3DS MAX 批量导出文件脚本 MAXScript 带界面

想通这点,治好 AI 打工人的精神内耗

bgp dual plane experiment routing strategy to control traffic

代码随想录笔记_动态规划_70爬楼梯

mSystems | Zhongnong Wang Jie Group Reveals the Mechanisms Affecting Soil "Plastic Interstitial" Microbial Communities
随机推荐
讯飞创意组别 全国选拔赛成绩公布说明
Open Office XML 格式里如何描述多段具有不同字体设置的段落
Comparison version number of middle questions in LeetCode
Network Saboteur
Solution for "Certificate not valid for requested usage" after Digicert EV certificate signing
燃炸!字节跳动成功上岸,只因刷爆LeetCode算法面试题
协程与任务
Jenkins修改端口号, jenkins容器修改默认端口号
Detailed explanation of es6-promise object
百度用户产品流批一体的实时数仓实践
Codeforces Round #276 (Div. 1) B. Maximum Value
ASP.NET Core依赖注入系统学习教程:ServiceDescriptor(服务注册描述类型)
47Haproxy Cluster
3DS MAX batch export file script MAXScript with interface
wirshark 常用操作及 tcp 三次握手过程实例分析
C#报错 The ‘xmins‘ attribute is not supported in this context
“68道 Redis+168道 MySQL”精品面试题(带解析)
LeetCode中等题之颠倒字符串中的单词
22!Beijing Changping District notified catering service enterprises with food safety problems
线代 | 秒杀方法与技巧