当前位置:网站首页>How to Easily Create Barplots with Error Bars in R
How to Easily Create Barplots with Error Bars in R
2022-07-02 11:50:00 【Xiaoyu 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)
)

边栏推荐
- Order by injection
- 基于Hardhat编写合约测试用例
- Take you ten days to easily finish the finale of go micro services (distributed transactions)
- Cluster Analysis in R Simplified and Enhanced
- 预言机链上链下调研
- HOW TO ADD P-VALUES ONTO A GROUPED GGPLOT USING THE GGPUBR R PACKAGE
- 2022年4月17日五心红娘团队收获双份喜报
- Is the stock account given by qiniu business school safe? Can I open an account?
- QT meter custom control
- excel表格中选中单元格出现十字带阴影的选中效果
猜你喜欢

pgsql 字符串转数组关联其他表,匹配 拼接后原顺序展示

GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R

RPA进阶(二)Uipath应用实践

Redis exceeds the maximum memory error oom command not allowed when used memory & gt; ' maxmemory'

Cluster Analysis in R Simplified and Enhanced

Flesh-dect (media 2021) -- a viewpoint of material decomposition

ESP32存储配网信息+LED显示配网状态+按键清除配网信息(附源码)

BEAUTIFUL GGPLOT VENN DIAGRAM WITH R

6方面带你认识LED软膜屏 LED软膜屏尺寸|价格|安装|应用

R HISTOGRAM EXAMPLE QUICK REFERENCE
随机推荐
基于Hardhat编写合约测试用例
Basic usage of MySQL in centos8
Amazon cloud technology community builder application window opens
基于 Openzeppelin 的可升级合约解决方案的注意事项
程序员成长第六篇:如何选择公司?
Liftover for genome coordinate conversion
to_bytes与from_bytes简单示例
Writing contract test cases based on hardhat
The selected cells in Excel form have the selection effect of cross shading
Wechat applet uses Baidu API to achieve plant recognition
YYGH-10-微信支付
mysql 基本语句
进入前六!博云在中国云管理软件市场销量排行持续上升
Tiktok overseas tiktok: finalizing the final data security agreement with Biden government
STM32 single chip microcomputer programming learning
Seriation in R: How to Optimally Order Objects in a Data Matrice
Cluster Analysis in R Simplified and Enhanced
Dynamic memory (advanced 4)
预言机链上链下调研
C # method of obtaining a unique identification number (ID) based on the current time