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

边栏推荐
- Is the Ren domain name valuable? Is it worth investing? What is the application scope of Ren domain name?
- Compilation errors and printout garbled problems caused by Chinese content in vs2019 code
- VS2019代码中包含中文内容导致的编译错误和打印输出乱码问题
- 【IDEA】使用插件一键逆向生成代码
- sql left join 主表限制条件写在on后面和写在where后面的区别
- 可昇級合約的原理-DelegateCall
- ROS lacks catkin_ pkg
- Summary of flutter problems
- MTK full dump grab
- Is it safe to open a stock account online? I'm a novice, please guide me
猜你喜欢

Attribute acquisition method and operation notes of C # multidimensional array

Never forget, there will be echoes | hanging mirror sincerely invites you to participate in the opensca user award research

亚马逊云科技 Community Builder 申请窗口开启

webauthn——官方开发文档

C#多维数组的属性获取方法及操作注意

Redis超出最大内存错误OOM command not allowed when used memory > 'maxmemory'

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

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

Summary of data export methods in powerbi

PYQT5+openCV项目实战:微循环仪图片、视频记录和人工对比软件(附源码)
随机推荐
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?
【多线程】主线程等待子线程执行完毕在执行并获取执行结果的方式记录(有注解代码无坑)
C file and folder operation
Homer预测motif
Jinshanyun - 2023 Summer Internship
Summary of data export methods in powerbi
[cloud native] 2.5 kubernetes core practice (Part 2)
Verilog 和VHDL有符号数和无符号数相关运算
函数式接口和方法引用
ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘
enumrate的start属性的坑
Functional interfaces and method references
ESP32存储配网信息+LED显示配网状态+按键清除配网信息(附源码)
C # method of obtaining a unique identification number (ID) based on the current time
PHP tea sales and shopping online store
JS——每次调用从数组里面随机取一个数,且不能与上一次为同一个
Develop scalable contracts based on hardhat and openzeppelin (II)
基于Hardhat编写合约测试用例
Importerror: impossible d'importer le nom « graph» de « graphviz»
mysql链表数据存储查询排序问题