当前位置:网站首页>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)
)
边栏推荐
猜你喜欢
VS2019代码中包含中文内容导致的编译错误和打印输出乱码问题
tidb-dm报警DM_sync_process_exists_with_error排查
MySQL comparison operator in problem solving
数字化转型挂帅复产复工,线上线下全融合重建商业逻辑
6方面带你认识LED软膜屏 LED软膜屏尺寸|价格|安装|应用
JS——每次调用从数组里面随机取一个数,且不能与上一次为同一个
Principe du contrat évolutif - delegatecall
PLC-Recorder快速监控多个PLC位的技巧
Importerror: impossible d'importer le nom « graph» de « graphviz»
念念不忘,必有回响 | 悬镜诚邀您参与OpenSCA用户有奖调研
随机推荐
6方面带你认识LED软膜屏 LED软膜屏尺寸|价格|安装|应用
Pit of the start attribute of enumrate
【IDEA】使用插件一键逆向生成代码
Functional interfaces and method references
The working day of the month is calculated from the 1st day of each month
Installation of ROS gazebo related packages
每月1号开始计算当月工作日
可昇級合約的原理-DelegateCall
SQLite modify column type
TDSQL|就业难?腾讯云数据库微认证来帮你
启牛商学院给的股票账户安全吗?能开户吗?
PYQT5+openCV项目实战:微循环仪图片、视频记录和人工对比软件(附源码)
ctf 记录
A white hole formed by antineutrons produced by particle accelerators
Seriation in R: How to Optimally Order Objects in a Data Matrice
Supermarket (heap overload
Visualization of chip SEQ data by deeptools
What is the relationship between digital transformation of manufacturing industry and lean production
mysql链表数据存储查询排序问题
liftOver进行基因组坐标转换