This function allows you to change the appearance of all boxes of a flowchart at once.
fc_theme(
object,
text_pattern = NULL,
text_pattern_init = NULL,
text_pattern_exc = NULL,
just = NULL,
text_color = NULL,
text_fs = NULL,
text_fface = NULL,
text_ffamily = NULL,
text_padding = NULL,
bg_fill = NULL,
border_color = NULL,
width = NULL,
height = NULL,
just_exc = NULL,
text_color_exc = NULL,
text_fs_exc = NULL,
text_fface_exc = NULL,
text_ffamily_exc = NULL,
text_padding_exc = NULL,
bg_fill_exc = NULL,
border_color_exc = NULL,
width_exc = NULL,
height_exc = NULL,
text_color_title = NULL,
text_fs_title = NULL,
text_fface_title = NULL,
text_ffamily_title = NULL,
text_padding_title = NULL,
bg_fill_title = NULL,
border_color_title = NULL,
width_title = NULL,
height_title = NULL
)List with the dataset and the flowchart parameters with their modifications.
fc object.
Text pattern for all the boxes, except the initial and exclusion ones.
Text pattern for the initial box.
Text pattern for the exclusion box.
Justification for the text: "left", "center" or "right".
Color of the text. See the col parameter for gpar.
Font size of the text. See the fontsize parameter for gpar.
Font face of the text. See the fontface parameter for gpar.
Changes the font family of the text. See the fontfamily parameter for gpar.
Changes the text padding inside the box. This number has to be greater than 0.
Box background color. See the fill parameter for gpar.
Box border color. See the col parameter for gpar.
Width of the box. Must be an object of class unit or a number between 0 and 1.
Height of the box. Must be an object of class unit or a number between 0 and 1.
Justification for the text of the exclude box: "left", "center" or "right".
Color of the text of the exclude box. See text_color.
Font size of the text of the exclude box. See text_fs.
Font face of the text of the exclude box. See the fontface parameter for gpar. See text_fface.
Changes the font family of the text of the exclude box. See the fontfamily parameter for gpar. See text_ffamily.
Changes the text padding inside the exclude box. This number has to be greater than 0.
Exclude box background color. See bg_fill.
Box background color of the exclude box. See border_color.
Width of the exclude box. Must be an object of class unit or a number between 0 and 1.
Height of the box. Must be an object of class unit or a number between 0 and 1.
Color of the title text.
Font size of the title text.
Font face of the title text. See the fontface parameter for gpar.
Changes the font family of the title text. See the fontfamily parameter for gpar.
Changes the title text padding inside the box. This number has to be greater than 0.
Title box background color.
Title box border color.
Width of the title box. Must be an object of class unit or a number between 0 and 1.
Height of the title box. Must be an object of class unit or a number between 0 and 1.
safo |>
dplyr::filter(!is.na(group)) |>
as_fc(label = "Randomized patients") |>
fc_split(group) |>
fc_theme(text_fs = 11, text_color = "#324C54", text_fface = 2, bg_fill = "#ADD8E6") |>
fc_draw()
Run the code above in your browser using DataLab