当前位置:网站首页>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)
)

边栏推荐
- Develop scalable contracts based on hardhat and openzeppelin (II)
- js中给数组添加元素的方法有哪些
- 通过券商经理的开户二维码开股票账户安全吗?还是去证券公司开户安全?
- Introduction to interface debugging tools
- Win11 arm system configuration Net core environment variable
- ROS lacks xacro package
- 对毕业季即将踏入职场的年轻人的一点建议
- JS -- take a number randomly from the array every call, and it cannot be the same as the last time
- PYQT5+openCV项目实战:微循环仪图片、视频记录和人工对比软件(附源码)
- Array splitting (regular thinking
猜你喜欢

RPA advanced (II) uipath application practice

RPA进阶(二)Uipath应用实践

Eight sorting summaries

GGPUBR: HOW TO ADD ADJUSTED P-VALUES TO A MULTI-PANEL GGPLOT

mysql链表数据存储查询排序问题

GGPlot Examples Best Reference

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

八大排序汇总

Seriation in R: How to Optimally Order Objects in a Data Matrice

制造业数字化转型和精益生产什么关系
随机推荐
spritejs
Thanos Receiver
Basic usage of MySQL in centos8
由粒子加速器产生的反中子形成的白洞
RPA advanced (II) uipath application practice
GGPlot Examples Best Reference
A white hole formed by antineutrons produced by particle accelerators
基于Hardhat和Openzeppelin开发可升级合约(二)
The difference between SQL left join main table restrictions written after on and where
Tidb DM alarm DM_ sync_ process_ exists_ with_ Error troubleshooting
Webauthn - official development document
【云原生】2.5 Kubernetes 核心实战(下)
SQLite modify column type
sql left join 主表限制条件写在on后面和写在where后面的区别
sqlite 修改列类型
Precautions for scalable contract solution based on openzeppelin
【IDEA】使用插件一键逆向生成代码
JS——每次调用从数组里面随机取一个数,且不能与上一次为同一个
Order by注入
R HISTOGRAM EXAMPLE QUICK REFERENCE