Skip to content

Commit

Permalink
Fix spacing between headers
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-bauer committed Sep 25, 2023
1 parent e2c1f17 commit 40aa20f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ df <- df_raw %>% mutate(
Online_session = as.logical(Online_session))
```

## Seperate two treatments

```{r}
df_pivot <- df_raw %>%
pivot_longer(
Expand Down Expand Up @@ -81,6 +83,7 @@ rec_time_sum_bar <- recordPlot()
```

## Violin plot per test case

```{r}
data <- df %>% select(ends_with("_seconds"))
Expand All @@ -94,7 +97,9 @@ vioplot(data,
rec_time_per_tc <- recordPlot()
```

## Violin plot per test case with seperation of the treatments

```{r}
vioplot(df_only_m,
side = "left",
Expand All @@ -119,7 +124,6 @@ legend("topleft", fill = c(color_alt, color_main),
rec_time_per_tc_split <- recordPlot()
```


## Mean values per treatment

```{r}
Expand All @@ -142,7 +146,9 @@ df_mean_tc <- df_mean_tc %>%
head(df_mean_tc, 8)
```

### Sum of mean values per treatment

```{r}
total_a <- as.integer(sum(df_mean_tc$A))
total_m <- as.integer(sum(df_mean_tc$M))
Expand All @@ -152,6 +158,7 @@ sprintf("Total: %i (M) and %i (A) = %i percent",
```

### LaTeX table export

```{r}
suppressPackageStartupMessages(library(xtable))
Expand Down Expand Up @@ -180,7 +187,9 @@ par(mar = c(2, 4, 1, 1)) # Set the margin
rec_time_sum_bar
dev.off
```

Violin plot of time distribution per test case

```{r}
#| output: false
tikz("figures/time_per_tc.tex", width = 6.5, height = 4)
Expand All @@ -190,6 +199,7 @@ dev.off
```

Violin plot of time distribution per test case (both treatments)

```{r}
#| output: false
tikz("figures/time_per_tc_split.tex", width = 6.5, height = 4)
Expand Down

0 comments on commit 40aa20f

Please sign in to comment.