当前位置:网站首页>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)
)
边栏推荐
- JS——每次调用从数组里面随机取一个数,且不能与上一次为同一个
- 原生方法合并word
- C#多维数组的属性获取方法及操作注意
- Pit of the start attribute of enumrate
- Precautions for scalable contract solution based on openzeppelin
- mysql 基本语句
- Eight sorting summaries
- What is the relationship between digital transformation of manufacturing industry and lean production
- Attribute acquisition method and operation notes of C # multidimensional array
- tqdm的多行显示与单行显示
猜你喜欢
Verilog 和VHDL有符号数和无符号数相关运算
ESP32存储配网信息+LED显示配网状态+按键清除配网信息(附源码)
Tidb DM alarm DM_ sync_ process_ exists_ with_ Error troubleshooting
Verilog and VHDL signed and unsigned number correlation operations
PKG package manager usage instance in FreeBSD
Cluster Analysis in R Simplified and Enhanced
MySQL比较运算符IN问题求解
ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘
ESP32音频框架 ESP-ADF 添加按键外设流程代码跟踪
A white hole formed by antineutrons produced by particle accelerators
随机推荐
String (Analog
Cluster Analysis in R Simplified and Enhanced
从攻击面视角,看信创零信任方案实践
6方面带你认识LED软膜屏 LED软膜屏尺寸|价格|安装|应用
念念不忘,必有回响 | 悬镜诚邀您参与OpenSCA用户有奖调研
Verilog 和VHDL有符号数和无符号数相关运算
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?
Wechat applet uses Baidu API to achieve plant recognition
【多线程】主线程等待子线程执行完毕在执行并获取执行结果的方式记录(有注解代码无坑)
The working day of the month is calculated from the 1st day of each month
【IDEA】使用插件一键逆向生成代码
How to Visualize Missing Data in R using a Heatmap
Jenkins installation
Solve the problem of data blank in the quick sliding page of the uniapp list
excel表格中选中单元格出现十字带阴影的选中效果
Xiao Sha's pain (double pointer
How to Create a Nice Box and Whisker Plot in R
C#多维数组的属性获取方法及操作注意
JS——每次调用从数组里面随机取一个数,且不能与上一次为同一个
Astparser parsing class files with enum enumeration methods