当前位置:网站首页>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)
)
边栏推荐
- 原生方法合并word
- sql left join 主表限制条件写在on后面和写在where后面的区别
- 高德根据轨迹画线
- [cloud native] 2.5 kubernetes core practice (Part 2)
- Verilog and VHDL signed and unsigned number correlation operations
- 制造业数字化转型和精益生产什么关系
- Mmrotate rotation target detection framework usage record
- 启牛商学院给的股票账户安全吗?能开户吗?
- 电脑无缘无故黑屏,无法调节亮度。
- PX4 Position_Control RC_Remoter引入
猜你喜欢
What is the relationship between digital transformation of manufacturing industry and lean production
Redis exceeds the maximum memory error oom command not allowed when used memory & gt; ' maxmemory'
tqdm的多行显示与单行显示
Principe du contrat évolutif - delegatecall
How to Create a Beautiful Plots in R with Summary Statistics Labels
Mmrotate rotation target detection framework usage record
TDSQL|就业难?腾讯云数据库微认证来帮你
From the perspective of attack surface, see the practice of zero trust scheme of Xinchuang
On April 17, 2022, the five heart matchmaker team received double good news
C#多维数组的属性获取方法及操作注意
随机推荐
原生方法合并word
Tick Data and Resampling
Verilog 和VHDL有符号数和无符号数相关运算
Liftover for genome coordinate conversion
Win11 arm system configuration Net core environment variable
From the perspective of attack surface, see the practice of zero trust scheme of Xinchuang
Gaode draws lines according to the track
JS -- take a number randomly from the array every call, and it cannot be the same as the last time
JS——每次调用从数组里面随机取一个数,且不能与上一次为同一个
预言机链上链下调研
MySQL comparison operator in problem solving
ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘
微信小程序利用百度api达成植物识别
map集合赋值到数据库
Visualization of chip SEQ data by deeptools
Is the Ren domain name valuable? Is it worth investing? What is the application scope of Ren domain name?
6方面带你认识LED软膜屏 LED软膜屏尺寸|价格|安装|应用
QT获取某个日期是第几周
Redis超出最大内存错误OOM command not allowed when used memory > 'maxmemory'
由粒子加速器产生的反中子形成的白洞