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

边栏推荐
- QT获取某个日期是第几周
- The working day of the month is calculated from the 1st day of each month
- 基于Hardhat和Openzeppelin开发可升级合约(一)
- js中给数组添加元素的方法有哪些
- ROS lacks xacro package
- Jenkins installation
- PowerBI中导出数据方法汇总
- Redis超出最大内存错误OOM command not allowed when used memory > 'maxmemory'
- Mongodb learning and sorting (condition operator, $type operator, limit() method, skip() method and sort() method)
- Installation of ROS gazebo related packages
猜你喜欢

mmrotate旋转目标检测框架使用记录

基于Hardhat和Openzeppelin开发可升级合约(二)

Amazon cloud technology community builder application window opens

enumrate的start属性的坑

【云原生】2.5 Kubernetes 核心实战(下)

HOW TO CREATE AN INTERACTIVE CORRELATION MATRIX HEATMAP IN R

Attribute acquisition method and operation notes of C # multidimensional array

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

制造业数字化转型和精益生产什么关系

JS——每次调用从数组里面随机取一个数,且不能与上一次为同一个
随机推荐
制造业数字化转型和精益生产什么关系
RPA advanced (II) uipath application practice
JS——每次调用从数组里面随机取一个数,且不能与上一次为同一个
【多线程】主线程等待子线程执行完毕在执行并获取执行结果的方式记录(有注解代码无坑)
Mongodb learning and sorting (condition operator, $type operator, limit() method, skip() method and sort() method)
Cluster Analysis in R Simplified and Enhanced
Digital transformation takes the lead to resume production and work, and online and offline full integration rebuilds business logic
在网上开股票账户安全吗?我是新手,还请指导
Eight sorting summaries
Jinshanyun - 2023 Summer Internship
亚马逊云科技 Community Builder 申请窗口开启
MTK full dump grab
Is it safe to open a stock account through the QR code of the securities manager? Or is it safe to open an account in a securities company?
Is the Ren domain name valuable? Is it worth investing? What is the application scope of Ren domain name?
MySql存储过程游标遍历结果集
Astparser parsing class files with enum enumeration methods
Is it safe to open a stock account online? I'm a novice, please guide me
通过券商经理的开户二维码开股票账户安全吗?还是去证券公司开户安全?
微信小程序利用百度api达成植物识别
Attribute acquisition method and operation notes of C # multidimensional array