Skip to content

Commit

Permalink
reverse any layout changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ayogasekaram committed May 14, 2024
1 parent 53393af commit 1d51d3f
Show file tree
Hide file tree
Showing 136 changed files with 775 additions and 413 deletions.
4 changes: 2 additions & 2 deletions book/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ execute:
engine: knitr
webr:
channel-type: "post-message"
packages: ["tern", "random.cdisc.data", "dplyr"]
packages: ["tern", "scda", "scda.2022", "dplyr"]
show-startup-message: false
autoload-packages: false

Expand Down Expand Up @@ -118,4 +118,4 @@ website:
profile:
group:
- [stable, development]
default: stable
default: stable
24 changes: 11 additions & 13 deletions book/graphs/efficacy/fstg01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ var_labels(anl_rsp_arms_ab) <- c(anl_labels, is_rsp = "Is Responder")
## {{< fa regular file-lines sm fw >}} Preview

<!-- skip strict because of https://github.com/therneau/survival/issues/240 -->

<!-- skip strict because of https://github.com/insightsengineering/tern/issues/1186 -->

```{r plot1, test = list(plot_v1 = "plot"), fig.width = 20, fig.height = 5, opts.label = ifelse(packageVersion("survival") < "3.5-8" || packageVersion("tern") < "0.9.3.9018", "skip_test_strict", "")}
df <- extract_rsp_subgroups(
variables = list(
Expand All @@ -69,7 +67,8 @@ plot <- g_forest(tbl = result)
plot
```

`r webr_code_labels <- c("setup", "plot1")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot1")`
{{< include ../../_utils/webr.qmd >}}
:::

## Plot Specifying Class Variables and <br/> Options for the Treatment Variable
Expand All @@ -78,9 +77,7 @@ plot
## {{< fa regular file-lines sm fw >}} Preview

<!-- skip strict because of https://github.com/therneau/survival/issues/240 -->

<!-- skip strict because of https://github.com/insightsengineering/tern/issues/1186 -->

```{r plot2, test = list(plot_v2 = "plot"), fig.width = 20, fig.height = 5, opts.label = ifelse(packageVersion("survival") < "3.5-8" || packageVersion("tern") < "0.9.3.9018", "skip_test_strict", "")}
anl_rsp_comb_arms_ac <- anl %>%
mutate(is_rsp = AVALC %in% c("CR", "PR")) %>%
Expand Down Expand Up @@ -118,7 +115,8 @@ plot <- g_forest(tbl = result)
plot
```

`r webr_code_labels <- c("setup", "plot2")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot2")`
{{< include ../../_utils/webr.qmd >}}
:::

## Plot Selecting Columns and <br/> Changing the Alpha Level
Expand All @@ -127,9 +125,7 @@ plot
## {{< fa regular file-lines sm fw >}} Preview

<!-- skip strict because of https://github.com/therneau/survival/issues/240 -->

<!-- skip strict because of https://github.com/insightsengineering/tern/issues/1186 -->

```{r plot3, test = list(plot_v3 = "plot"), fig.width = 10, fig.height = 4, opts.label = ifelse(packageVersion("survival") < "3.5-8" || packageVersion("tern") < "0.9.3.9018", "skip_test_strict", "")}
df <- extract_rsp_subgroups(
variables = list(
Expand All @@ -149,7 +145,8 @@ plot <- g_forest(tbl = result)
plot
```

`r webr_code_labels <- c("setup", "plot3")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot3")`
{{< include ../../_utils/webr.qmd >}}
:::

## Plot with Fixed <br/> Symbol Size
Expand Down Expand Up @@ -183,7 +180,8 @@ plot <- g_forest(
plot
```

`r webr_code_labels <- c("setup", "plot4")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot4")`
{{< include ../../_utils/webr.qmd >}}
:::

## Plot of CR Only, Setting <br/> Values Indicating Response
Expand All @@ -192,9 +190,7 @@ plot
## {{< fa regular file-lines sm fw >}} Preview

<!-- skip strict because of https://github.com/therneau/survival/issues/240 -->

<!-- skip strict because of https://github.com/insightsengineering/tern/issues/1186 -->

```{r plot5, test = list(plot_v5 = "plot"), fig.width = 20, fig.height = 5, opts.label = ifelse(packageVersion("survival") < "3.5-8" || packageVersion("tern") < "0.9.3.9018", "skip_test_strict", "")}
anl_cr_arms_ab <- anl %>%
mutate(is_rsp = AVALC == "CR") %>%
Expand Down Expand Up @@ -231,7 +227,8 @@ width <- 20
height <- 5
```

`r webr_code_labels <- c("setup", "plot5")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot5")`
{{< include ../../_utils/webr.qmd >}}
:::

{{< include ../../_utils/save_results.qmd >}}
Expand Down Expand Up @@ -306,4 +303,5 @@ shinyApp(app$ui, app$server)
:::

{{< include ../../repro.qmd >}}

::::
19 changes: 9 additions & 10 deletions book/graphs/efficacy/fstg02.qmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: FSTG02
subtitle: Subgroup Analysis of Survival Duration
editor_options:
chunk_output_type: console
---

------------------------------------------------------------------------
Expand Down Expand Up @@ -61,7 +59,6 @@ anl <- random.cdisc.data::cadtte %>%
## {{< fa regular file-lines sm fw >}} Preview

<!-- skip strict because of https://github.com/insightsengineering/rtables/issues/830 -->

```{r plot1, test = list(plot_v1 = "plot"), fig.width = 15, fig.height = 4, opts.label = ifelse(packageVersion("rtables") < "0.6.6.9011", "skip_test_strict", "")}
anl1 <- anl
Expand All @@ -83,7 +80,8 @@ plot <- g_forest(tbl = result)
plot
```

`r webr_code_labels <- c("setup", "plot1")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot1")`
{{< include ../../_utils/webr.qmd >}}
:::

## Plot Specifying Class Variables and <br/> Options for the Treatment Variable
Expand All @@ -92,7 +90,6 @@ plot
## {{< fa regular file-lines sm fw >}} Preview

<!-- skip strict because of https://github.com/insightsengineering/rtables/issues/830 -->

```{r plot2, test = list(plot_v2 = "plot"), fig.width = 15, fig.height = 4, opts.label = ifelse(packageVersion("rtables") < "0.6.6.9011", "skip_test_strict", "")}
anl2 <- anl %>%
mutate(
Expand Down Expand Up @@ -125,7 +122,8 @@ plot <- g_forest(tbl = result)
plot
```

`r webr_code_labels <- c("setup", "plot2")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot2")`
{{< include ../../_utils/webr.qmd >}}
:::

## Plot Selecting Columns and <br/> Changing the Alpha Level
Expand All @@ -134,7 +132,6 @@ plot
## {{< fa regular file-lines sm fw >}} Preview

<!-- skip strict because of https://github.com/insightsengineering/rtables/issues/830 -->

```{r plot3, test = list(plot_v3 = "plot"), fig.width = 8, fig.height = 4, opts.label = ifelse(packageVersion("rtables") < "0.6.6.9011", "skip_test_strict", "")}
anl3 <- anl
Expand All @@ -156,7 +153,8 @@ plot <- g_forest(tbl = result)
plot
```

`r webr_code_labels <- c("setup", "plot3")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot3")`
{{< include ../../_utils/webr.qmd >}}
:::

## Plot with Fixed <br/> Symbol Size
Expand All @@ -165,7 +163,6 @@ plot
## {{< fa regular file-lines sm fw >}} Preview

<!-- skip strict because of https://github.com/insightsengineering/rtables/issues/830 -->

```{r plot4, test = list(plot_v4 = "plot"), fig.width = 15, fig.height = 4, opts.label = ifelse(packageVersion("rtables") < "0.6.6.9011", "skip_test_strict", "")}
anl4 <- anl
Expand Down Expand Up @@ -196,7 +193,8 @@ height <- 4
plot_v3.width <- 8 # nolint: object_name.
```

`r webr_code_labels <- c("setup", "plot4")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot4")`
{{< include ../../_utils/webr.qmd >}}
:::

{{< include ../../_utils/save_results.qmd >}}
Expand Down Expand Up @@ -280,4 +278,5 @@ shinyApp(app$ui, app$server)
:::

{{< include ../../repro.qmd >}}

::::
25 changes: 13 additions & 12 deletions book/graphs/efficacy/kmg01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ variables <- list(tte = "AVAL", is_event = "is_event", arm = "ARMCD")
## {{< fa regular file-lines sm fw >}} Preview

<!-- skip strict because of https://github.com/r-lib/gtable/pull/94 -->

```{r plot1, fig.width = 9, fig.height = 6, test = list(plot_v1 = "plot"), opts.label = "skip_test_strict"}
plot <- g_km(
df = anl,
Expand All @@ -42,7 +41,8 @@ plot <- g_km(
plot
```

`r webr_code_labels <- c("setup", "plot1")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot1")`
{{< include ../../_utils/webr.qmd >}}
:::

## Plot of Failures
Expand All @@ -51,7 +51,6 @@ plot
## {{< fa regular file-lines sm fw >}} Preview

<!-- skip strict because of https://github.com/r-lib/gtable/pull/94 -->

```{r plot2, fig.width = 9, fig.height = 6, test = list(plot_v2 = "plot"), opts.label = "skip_test_strict"}
plot <- g_km(
df = anl,
Expand All @@ -65,7 +64,8 @@ plot <- g_km(
plot
```

`r webr_code_labels <- c("setup", "plot2")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot2")`
{{< include ../../_utils/webr.qmd >}}
:::

## Plot Without <br/> Comparative Statistics
Expand All @@ -74,7 +74,6 @@ plot
## {{< fa regular file-lines sm fw >}} Preview

<!-- skip strict because of https://github.com/r-lib/gtable/pull/94 -->

```{r plot3, fig.width = 9, fig.height = 6, test = list(plot_v3 = "plot"), opts.label = "skip_test_strict"}
plot <- g_km(
df = anl,
Expand All @@ -85,7 +84,8 @@ plot <- g_km(
plot
```

`r webr_code_labels <- c("setup", "plot3")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot3")`
{{< include ../../_utils/webr.qmd >}}
:::

## Plot Without <br/> Censoring Marks
Expand All @@ -94,7 +94,6 @@ plot
## {{< fa regular file-lines sm fw >}} Preview

<!-- skip strict because of https://github.com/r-lib/gtable/pull/94 -->

```{r plot4, fig.width = 9, fig.height = 6, test = list(plot_v4 = "plot"), opts.label = "skip_test_strict"}
plot <- g_km(
df = anl,
Expand All @@ -107,7 +106,8 @@ plot <- g_km(
plot
```

`r webr_code_labels <- c("setup", "plot4")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot4")`
{{< include ../../_utils/webr.qmd >}}
:::

## Plot Modifying <br/> Censoring Marks
Expand All @@ -116,7 +116,6 @@ plot
## {{< fa regular file-lines sm fw >}} Preview

<!-- skip strict because of https://github.com/r-lib/gtable/pull/94 -->

```{r plot5, fig.width = 9, fig.height = 6, test = list(plot_v5 = "plot"), opts.label = "skip_test_strict"}
plot <- g_km(
df = anl,
Expand All @@ -130,7 +129,8 @@ plot <- g_km(
plot
```

`r webr_code_labels <- c("setup", "plot5")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot5")`
{{< include ../../_utils/webr.qmd >}}
:::

## Plot Modifying Options for Statistics, <br/> Tie Handling, Stratification, etc.
Expand All @@ -139,7 +139,6 @@ plot
## {{< fa regular file-lines sm fw >}} Preview

<!-- skip strict because of https://github.com/r-lib/gtable/pull/94 -->

```{r plot6, fig.width = 9, fig.height = 6, test = list(plot_v6 = "plot"), opts.label = "skip_test_strict"}
variables$strata <- c("STRATA1", "STRATA2")
plot <- g_km(
Expand All @@ -158,7 +157,8 @@ plot <- g_km(
plot
```

`r webr_code_labels <- c("setup", "plot6")` {{< include ../../_utils/webr.qmd >}}
`r webr_code_labels <- c("setup", "plot6")`
{{< include ../../_utils/webr.qmd >}}
:::

::: {.content-visible when-profile="development"}
Expand Down Expand Up @@ -239,4 +239,5 @@ shinyApp(app$ui, app$server)
:::

{{< include ../../repro.qmd >}}

::::
5 changes: 1 addition & 4 deletions book/graphs/efficacy/mmrmg01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ mmrm_results <- fit_mmrm(
### Considering the treatment variable in the model

<!-- skip strict because of https://github.com/r-lib/gtable/pull/94 -->

```{r plot1, dev.args = list(pointsize = 6), test = list(plot_v1 = "plot"), opts.label = "skip_test_strict"}
plot <- g_mmrm_lsmeans(
mmrm_results,
Expand All @@ -59,7 +58,6 @@ plot
### Considering the treatment variable in the model, with lines

<!-- skip strict because of https://github.com/r-lib/gtable/pull/94 -->

```{r plot2, dev.args = list(pointsize = 6), test = list(plot_v2 = "plot"), opts.label = "skip_test_strict"}
plot <- g_mmrm_lsmeans(
mmrm_results,
Expand All @@ -73,7 +71,6 @@ plot
### Considering the treatment variable in the model, with statistics table

<!-- skip strict because of https://github.com/r-lib/gtable/pull/94 -->

```{r plot3, dev.args = list(pointsize = 6), fig.height = 7, test = list(plot_v3 = "plot"), opts.label = "skip_test_strict"}
plot <- g_mmrm_lsmeans(
mmrm_results,
Expand All @@ -91,7 +88,6 @@ plot
Users can choose to display both estimates and contrasts together by running `g_mmrm_lsmeans(mmrm_results)`.

<!-- skip strict because of https://github.com/r-lib/gtable/pull/94 -->

```{r plot4, dev.args = list(pointsize = 6), test = list(plot_v4 = "plot"), opts.label = "skip_test_strict"}
plot <- g_mmrm_lsmeans(
mmrm_results,
Expand Down Expand Up @@ -180,4 +176,5 @@ shinyApp(app$ui, app$server)
```

{{< include ../../repro.qmd >}}

::::
1 change: 1 addition & 0 deletions book/graphs/efficacy/mmrmg02.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,5 @@ height <- 4
{{< include ../../_utils/save_results.qmd >}}

{{< include ../../repro.qmd >}}

::::
Loading

0 comments on commit 1d51d3f

Please sign in to comment.