generated from OxfordIHTM/ihtm-targets-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_targets_visualisation.R
41 lines (40 loc) · 1.2 KB
/
_targets_visualisation.R
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
################################################################################
#
# Data visualisation workflow
#
################################################################################
visualisation_targets <- tar_plan(
## Disease over time ----
tar_target(
name = disease_year_grant_number_plot,
command = plot_disease_year(pact_disease_year_table)
),
tar_target(
name = disease_year_grant_amount_plot,
command = plot_disease_year(pact_disease_year_table, outcome = "money")
),
tar_target(
name = disease_grant_number_plot,
command = plot_disease(pact_disease_table)
),
tar_target(
name = disease_grant_amount_plot,
command = plot_disease(pact_disease_table, outcome = "money")
),
tar_target(
name = category_grant_number_plot,
command = plot_category(pact_category_table)
),
tar_target(
name = category_grant_amount_plot,
command = plot_category(pact_category_table, outcome = "money")
),
tar_target(
name = subcategory_grant_number_plot,
command = plot_subcategory(pact_subcategory_table)
),
tar_target(
name = subcategory_grant_amount_plot,
command = plot_subcategory(pact_subcategory_table, outcome = "money")
)
)