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

边栏推荐
- MySQL basic statement
- Rest (XOR) position and thinking
- JS -- take a number randomly from the array every call, and it cannot be the same as the last time
- MTK full dump抓取
- STM32 single chip microcomputer programming learning
- Multi line display and single line display of tqdm
- webauthn——官方开发文档
- 【云原生】2.5 Kubernetes 核心实战(下)
- ros gazebo相关包的安装
- Principe du contrat évolutif - delegatecall
猜你喜欢

JS -- take a number randomly from the array every call, and it cannot be the same as the last time

ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘

MTK full dump抓取

Is the Ren domain name valuable? Is it worth investing? What is the application scope of Ren domain name?

从攻击面视角,看信创零信任方案实践

TDSQL|就业难?腾讯云数据库微认证来帮你

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

ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘

enumrate的start属性的坑

webauthn——官方开发文档
随机推荐
The difference between SQL left join main table restrictions written after on and where
Digital transformation takes the lead to resume production and work, and online and offline full integration rebuilds business logic
Is the Ren domain name valuable? Is it worth investing? What is the application scope of Ren domain name?
原生方法合并word
What are the methods of adding elements to arrays in JS
接口调试工具概论
map集合赋值到数据库
VS2019代码中包含中文内容导致的编译错误和打印输出乱码问题
[cloud native] 2.5 kubernetes core practice (Part 2)
ctf 记录
Verilog and VHDL signed and unsigned number correlation operations
JS -- take a number randomly from the array every call, and it cannot be the same as the last time
Principe du contrat évolutif - delegatecall
RPA进阶(二)Uipath应用实践
Is it safe to open a stock account online? I'm a novice, please guide me
从攻击面视角,看信创零信任方案实践
ros缺少xacro的包
基于Hardhat编写合约测试用例
MySQL linked list data storage query sorting problem
Mmrotate rotation target detection framework usage record