当前位置:网站首页>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",
边栏推荐
- Alibaba Cloud Jia Zhaohui: Cloud XR platform supports Bizhen Technology to present a virtual concert of national style sci-fi
- Jiugongge lottery animation
- Comparison version number of middle questions in LeetCode
- Have you guys encountered this problem?MySQL 2.2 and 2.3-SNAPSHOT are like this, it seems to be
- LeetCode medium topic search of two-dimensional matrix
- AtCoder初学者比赛077 D -小多
- “68道 Redis+168道 MySQL”精品面试题(带解析)
- 讯飞创意组别 全国选拔赛成绩公布说明
- 瑞幸「翻身」?恐言之尚早
- 没有接班人,格力只剩“明珠精选”
猜你喜欢
燃炸!字节跳动成功上岸,只因刷爆LeetCode算法面试题
Blast!ByteDance successfully landed, only because the interview questions of LeetCode algorithm were exhausted
商汤自研机械臂,首款产品是AI下棋机器人:还请郭晶晶作代言
Keithley DMM7510 accurate measurement of ultra-low power consumption equipment all kinds of operation mode power consumption
Basic knowledge of switches
LeetCode·每日一题·640.求解方程·模拟构造
Nanodlp v2.2/v3.0 light curing circuit board, connection method of mechanical switch/photoelectric switch/proximity switch and system state level setting
Jenkins修改端口号, jenkins容器修改默认端口号
shell:常用小工具(sort、uniq、tr、cut)
ABAP 里文件操作涉及到中文字符集的问题和解决方案试读版
随机推荐
Real-time data warehouse practice of Baidu user product flow and batch integration
Detailed explanation of es6-promise object
M²BEV: Multi-Camera Joint 3D Detection and Segmentation with Unified Bird’s-Eye View Representation
Jenkins修改默认主目录
递归递推之Fighting_小银考呀考不过四级
Mysql—— 内连接、左连接、右连接以及全连接查询
Efficient and Robust 2D-to-BEV Representation Learning via Geometry-guided Kernel Transformer Paper Notes
Redis上云迁移实践
Jenkins修改端口号, jenkins容器修改默认端口号
矩阵键盘&基于51(UcosII)计算器小项目
线代 | 秒杀方法与技巧
iTextSharp 使用详解
一种能让大型数据聚类快2000倍的方法,真不戳
瑞幸「翻身」?恐言之尚早
Codeforces Round #276 (Div. 1) B. Maximum Value
递归递推之递归的函数
一文详解 implementation api embed
2022年8月中国数据库排行榜:openGauss重夺榜眼,PolarDB反超人大金仓
商汤自研机械臂,首款产品是AI下棋机器人:还请郭晶晶作代言
LeetCode简单题之合并相似的物品