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

边栏推荐
- liftOver进行基因组坐标转换
- PowerBI中导出数据方法汇总
- 在网上开股票账户安全吗?我是新手,还请指导
- Resources reads 2D texture and converts it to PNG format
- 基于 Openzeppelin 的可升级合约解决方案的注意事项
- Some things configured from ros1 to ros2
- Redis超出最大内存错误OOM command not allowed when used memory > 'maxmemory'
- sql left join 主表限制条件写在on后面和写在where后面的区别
- map集合赋值到数据库
- HOW TO CREATE AN INTERACTIVE CORRELATION MATRIX HEATMAP IN R
猜你喜欢

tidb-dm报警DM_sync_process_exists_with_error排查

RPA advanced (II) uipath application practice

Mmrotate rotation target detection framework usage record

可昇級合約的原理-DelegateCall

Develop scalable contracts based on hardhat and openzeppelin (II)

Multi line display and single line display of tqdm

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

map集合赋值到数据库

Compilation errors and printout garbled problems caused by Chinese content in vs2019 code

Internship report skywalking distributed link tracking?
随机推荐
TDSQL|就业难?腾讯云数据库微认证来帮你
PHP tea sales and shopping online store
map集合赋值到数据库
ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘
JS——每次调用从数组里面随机取一个数,且不能与上一次为同一个
C#多维数组的属性获取方法及操作注意
Jinshanyun - 2023 Summer Internship
Order by注入
Tdsql | difficult employment? Tencent cloud database micro authentication to help you
liftOver进行基因组坐标转换
启牛商学院给的股票账户安全吗?能开户吗?
sqlite 修改列类型
在网上开股票账户安全吗?我是新手,还请指导
预言机链上链下调研
ROS lacks catkin_ pkg
ESP32存储配网信息+LED显示配网状态+按键清除配网信息(附源码)
Supermarket (heap overload
SQLite modify column type
Always report errors when connecting to MySQL database
MTK full dump抓取