Skip to content

Commit 0e79d23

Browse files
committed
Refresh template table
1 parent 8b93a81 commit 0e79d23

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

quarto/figure-templates/template-fig_03.qmd

+14-14
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@ Required variables:
3434

3535
- **`df`**: The variables specified by `arm_var`, `id_var`, `saffl_var`, `trtsdtm_var`, `trtedtm_var` and `dctreas_var`.
3636

37-
| Argument | Description | Default |
38-
|:--------------|:------------------------------------------|:--------------|
39-
| `df` | (`data.frame`) Dataset (typically ADSL) required to build figure. | *No default* |
40-
| `arm_var` | (`character`) Arm variable used to split table into columns. | `"ARM"` |
41-
| `saffl_var` | (`character`) Flag variable used to indicate inclusion in safety population. | `"SAFFL"` |
42-
| `id_var` | (`character`) Identifier variable used to count the participants within each flag. | `"USUBJID"` |
43-
| `trtsdtm_var` | (`character`) Treatment start datetime variable in df. | `"TRTSDTM"` |
44-
| `trtedtm_var` | (`character`) Treatment end datetime variable in df. | `"TRTEDTM"` |
45-
| `u_trtdur` | (`character`) Unit for duration of treatment. Options are `"days"`, `"weeks"`, `"months"` and `"years"`. | `"days"` |
46-
| `dctreas_var` | (`character`) Reason for treatment discontinuation variable used to split figure into lines. | `"DCTREAS"` |
47-
| `x_lab` | (`character`) x-axis label. | `paste0("Time from first dose (", u_trtdur, ")")` |
48-
| `y_lab` | (`character`) y-axis label. | `"Percent of Patients (%)"` |
49-
| `xticks` | (`vector` of `numeric`) x-axis tick positions. If `NA` (default), tick mark positions are automatically calculated. | `NA` |
50-
| `add_table` | (`flag`) whether "Number of Patients" table should be printed under the plot. | `TRUE` |
37+
| Argument | Description | Default |
38+
|:--------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------|
39+
| `df` | (`data.frame`) Dataset (typically ADSL) required to build figure. | *No default* |
40+
| `arm_var` | (`character`) Arm variable used to split table into columns. | `"ARM"` |
41+
| `saffl_var` | (`character`) Flag variable used to indicate inclusion in safety population. | `"SAFFL"` |
42+
| `id_var` | (`character`) Identifier variable used to count the participants within each flag. | `"USUBJID"` |
43+
| `trtsdtm_var` | (`character`) Treatment start datetime variable in df. | `"TRTSDTM"` |
44+
| `trtedtm_var` | (`character`) Treatment end datetime variable in df. | `"TRTEDTM"` |
45+
| `u_trtdur` | (`character`) Unit for duration of treatment. Options are `"days"`, `"weeks"`, `"months"` and `"years"`. | `"days"` |
46+
| `dctreas_var` | (`character`) Reason for treatment discontinuation variable used to split figure into lines. | `"DCTREAS"` |
47+
| `x_lab` | (`character`) x-axis label. | `paste0("Time from first dose (", u_trtdur, ")")` |
48+
| `y_lab` | (`character`) y-axis label. | `"Percent of Patients (%)"` |
49+
| `xticks` | (`vector` of `numeric`) x-axis tick positions. If `NA` (default), tick mark positions are automatically calculated. | `NA` |
50+
| `add_table` | (`flag`) whether "Number of Patients" table should be printed under the plot. | `TRUE` |
5151
| `annotations` | (named `list` of `character`) List of annotations to add to the figure. Valid annotation types are `title`, `subtitles`, and `caption`. Each name-value pair should use the annotation type as name and the desired string as value. | `NULL` |
5252

5353
Source code for this function is available [here](https://github.com/pharmaverse/falcon/blob/main/R/fda-fig_03.R).

0 commit comments

Comments
 (0)