forked from timaburton/Biocomp_tutorial12
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask2.r
More file actions
17 lines (14 loc) · 620 Bytes
/
Copy pathtask2.r
File metadata and controls
17 lines (14 loc) · 620 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
library(ggplot2)
data <- read.table(file = "data.txt", header = T, sep = ",", stringsAsFactors = FALSE)
ggplot(data, aes(x = region, y = observations)) +
stat_summary(fun = mean, geom = "bar") +
xlab(“region") +
ylab(“observations") +
theme_classic()
ggplot(data = data,aes(x = region, y = observations)) +
geom_point() +
geom_jitter()
xlab(“region") +
ylab(“observations") +
theme_classic()
# Barplot does not show us the great variance in diffrent regions here. SInce means are very similar we might be deceived. Jitterplot shows us the spread of clusters which gives us more information.