当前位置:网站首页>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)
)
边栏推荐
猜你喜欢
Data analysis - Matplotlib sample code
揭露数据不一致的利器 —— 实时核对系统
Principe du contrat évolutif - delegatecall
Principle of scalable contract delegatecall
可昇級合約的原理-DelegateCall
文件操作(详解!)
YYGH-9-预约下单
Develop scalable contracts based on hardhat and openzeppelin (II)
Cluster Analysis in R Simplified and Enhanced
YYGH-BUG-05
随机推荐
由粒子加速器产生的反中子形成的白洞
Astparser parsing class files with enum enumeration methods
MySQL比较运算符IN问题求解
C # method of obtaining a unique identification number (ID) based on the current time
R HISTOGRAM EXAMPLE QUICK REFERENCE
MySQL basic statement
map集合赋值到数据库
数字化转型挂帅复产复工,线上线下全融合重建商业逻辑
b格高且好看的代码片段分享图片生成
RPA advanced (II) uipath application practice
MySQL linked list data storage query sorting problem
PHP query distance according to longitude and latitude
Attribute acquisition method and operation notes of C # multidimensional array
qt 仪表自定义控件
to_bytes与from_bytes简单示例
PYQT5+openCV项目实战:微循环仪图片、视频记录和人工对比软件(附源码)
How to Visualize Missing Data in R using a Heatmap
在连接mysql数据库的时候一直报错
【2022 ACTF-wp】
[cloud native] 2.5 kubernetes core practice (Part 2)