-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleaving-the-bar.R
31 lines (26 loc) · 928 Bytes
/
leaving-the-bar.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
################################################
# J.Goedhart | @joachimgoedhart | 2017-03-07
# [email protected] | http://www.molecularcytology.nl/Joachim/
# modified by Katrin Leinweber | 2018-12-05
# [email protected] | https://github.com/katrinleinweber
library(ggplot2)
################################################
# Read the data
data_summary <-
read.csv("https://zenodo.org/record/375944/files/Data_summary.csv?download=1")
data_tidy <-
read.csv("https://zenodo.org/record/375944/files/Data_tidy.csv?download=1")
################################################
ggplot(data_tidy, aes(x = Condition, y = ratio)) +
geom_boxplot(fill = "grey90",
notch = TRUE,
outlier.color = NA) +
geom_jitter(
data = data_tidy,
aes(Condition, ratio),
position = position_jitter(0.3),
color = "grey40"
) +
ggtitle("Boxplot & data") +
ylim(0, 2) +
theme_classic()