-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.qmd
41 lines (37 loc) · 1002 Bytes
/
index.qmd
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
32
33
34
35
36
37
38
39
40
41
---
title: "Movement, Wearables, Programming"
echo: false
execute:
warning: false
cache: true
freeze: false
---
```{r, fig.width=12}
#| message: false
library(dplyr)
library(tidyr)
suppressWarnings(library(ggplot2))
library(read.gt3x)
library(hms)
library(viridis)
df_raw <-
read.gt3x("data/acc.gt3x") %>%
as.data.frame() %>%
separate("time", c("Date", "Time"), sep = " ") %>%
filter(Date == "2020-10-01" & Time >= "15:56:00" & Time <= "16:30:00") %>%
mutate(Time = as_hms(Time))
g <-
ggplot(data = df_raw, aes(x = Time, y = X, color = as.numeric(Time))) +
geom_line() +
scale_x_continuous(expand = c(0,0)) +
scale_y_continuous(expand = c(0.2,0.2)) +
scale_color_viridis() +
labs(x=NULL, y=NULL, title=NULL) +
theme(axis.text = element_blank(),
axis.ticks = element_blank(),
panel.border=element_blank(),
plot.margin = margin(0, 0, 0, 0, "cm"),
panel.background = element_rect(fill='white'),
legend.position = "none")
g
```