当前位置:网站首页>How to Easily Create Barplots with Error Bars in R
How to Easily Create Barplots with Error Bars in R
2022-07-02 09:38:00 【小宇2022】
library(ggpubr)
# Create a simple bar plot
ggbarplot(
ToothGrowth, x = "dose", y = "len",
add = c("mean_se", "jitter"),
fill = "#BF504D"
)

library(ggpubr)
# Grouped bar plots
# Colored by groups
ggbarplot(
ToothGrowth, x = "dose", y = "len",
add = c("mean_sd", "jitter"),
color = "supp", palette = c("#807F7F", "#BF504D"),
position = position_dodge(0.8)
)

library(ggpubr)
# Change bars fill color by groups
# You need to change also point shapes by groups
ggbarplot(
ToothGrowth, x = "dose", y = "len",
add = c("mean_sd", "jitter"),
add.params = list(shape = "supp"),
fill= "supp", palette = c("#807F7F", "#BF504D"),
position = position_dodge(0.8)
)

边栏推荐
- PKG package manager usage instance in FreeBSD
- C#基于当前时间,获取唯一识别号(ID)的方法
- 从ros1到ros2配置的一些东西
- MySQL comparison operator in problem solving
- ren域名有价值吗?值不值得投资?ren域名的应用范围有哪些?
- 2022年遭“挤爆”的三款透明LED显示屏
- Mongodb learning and sorting (condition operator, $type operator, limit() method, skip() method and sort() method)
- Precautions for scalable contract solution based on openzeppelin
- 通过券商经理的开户二维码开股票账户安全吗?还是去证券公司开户安全?
- 在连接mysql数据库的时候一直报错
猜你喜欢

Eight sorting summaries

电脑无缘无故黑屏,无法调节亮度。

mmrotate旋转目标检测框架使用记录

Mmrotate rotation target detection framework usage record

How to Create a Beautiful Plots in R with Summary Statistics Labels

Internship report skywalking distributed link tracking?

制造业数字化转型和精益生产什么关系

C#多维数组的属性获取方法及操作注意

亚马逊云科技 Community Builder 申请窗口开启

Thanos Receiver
随机推荐
基于Hardhat编写合约测试用例
PLC-Recorder快速监控多个PLC位的技巧
可升级合约的原理-DelegateCall
Basic usage of MySQL in centos8
Installation of ROS gazebo related packages
Xiao Sha's pain (double pointer
ros缺少xacro的包
Writing contract test cases based on hardhat
Gaode draws lines according to the track
Summary of data export methods in powerbi
制造业数字化转型和精益生产什么关系
tidb-dm报警DM_sync_process_exists_with_error排查
程序员成长第六篇:如何选择公司?
PYQT5+openCV项目实战:微循环仪图片、视频记录和人工对比软件(附源码)
map集合赋值到数据库
Verilog and VHDL signed and unsigned number correlation operations
How to Visualize Missing Data in R using a Heatmap
在连接mysql数据库的时候一直报错
bedtools使用教程
数字化转型挂帅复产复工,线上线下全融合重建商业逻辑