当前位置:网站首页>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)
)
边栏推荐
- PYQT5+openCV项目实战:微循环仪图片、视频记录和人工对比软件(附源码)
- YYGH-BUG-04
- PgSQL string is converted to array and associated with other tables, which are displayed in the original order after matching and splicing
- Visualization of chip SEQ data by deeptools
- Native method merge word
- Easyexcel and Lombok annotations and commonly used swagger annotations
- [multithreading] the main thread waits for the sub thread to finish executing, and records the way to execute and obtain the execution result (with annotated code and no pit)
- 【2022 ACTF-wp】
- Research on and off the Oracle chain
- K-Means Clustering Visualization in R: Step By Step Guide
猜你喜欢
PgSQL string is converted to array and associated with other tables, which are displayed in the original order after matching and splicing
MySQL comparison operator in problem solving
Never forget, there will be echoes | hanging mirror sincerely invites you to participate in the opensca user award research
Summary of data export methods in powerbi
BEAUTIFUL GGPLOT VENN DIAGRAM WITH R
Research on and off the Oracle chain
基于Hardhat和Openzeppelin开发可升级合约(二)
Some problems encountered in introducing lvgl into esp32 Arduino
微信小程序利用百度api达成植物识别
ESP32存储配网信息+LED显示配网状态+按键清除配网信息(附源码)
随机推荐
BEAUTIFUL GGPLOT VENN DIAGRAM WITH R
FLESH-DECT(MedIA 2021)——一个material decomposition的观点
Programmer growth Chapter 6: how to choose a company?
Tiktok overseas tiktok: finalizing the final data security agreement with Biden government
to_bytes与from_bytes简单示例
II Stm32f407 chip GPIO programming, register operation, library function operation and bit segment operation
How to Easily Create Barplots with Error Bars in R
Order by injection
GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R
Research on and off the Oracle chain
CTF record
GGPUBR: HOW TO ADD ADJUSTED P-VALUES TO A MULTI-PANEL GGPLOT
[cloud native] 2.5 kubernetes core practice (Part 2)
mysql 基本语句
K-Means Clustering Visualization in R: Step By Step Guide
How to Create a Nice Box and Whisker Plot in R
A sharp tool for exposing data inconsistencies -- a real-time verification system
【2022 ACTF-wp】
Cluster Analysis in R Simplified and Enhanced
pgsql 字符串转数组关联其他表,匹配 拼接后原顺序展示