Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add modify header vignette #96

Closed
shannonpileggi opened this issue Feb 13, 2022 · 4 comments · Fixed by #184
Closed

add modify header vignette #96

shannonpileggi opened this issue Feb 13, 2022 · 4 comments · Fixed by #184
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@shannonpileggi
Copy link
Owner

Show how various selectors work

@shannonpileggi shannonpileggi added this to the First Release! milestone Feb 13, 2022
@shannonpileggi shannonpileggi self-assigned this Feb 13, 2022
@shannonpileggi shannonpileggi added the documentation Improvements or additions to documentation label Feb 13, 2022
@ddsjoberg
Copy link
Collaborator

ddsjoberg commented Feb 13, 2022

I was thinking about this a bit...we could have the code to create a big table like this one

gtsummary::theme_gtsummary_compact()
df_adverse_events %>%
  dplyr::mutate(grade = ifelse(dplyr::row_number() == 1L, NA, grade)) %>%
  tbl_ae(
    id = patient_id,
    ae = adverse_event,
    soc = system_organ_class,
    strata = trt,
    by = grade
  ) %>%
  add_overall(across = 'by') %>%
  modify_ae_header(
    all_ae_cols() ~ "**Grade {by}**"
  ) %>%
  bold_labels()

image

and I can ask Jeffrey to do some photoshop magic to highlight the columns selected by various calls to the all_*_cols() functions. He's done something similar for me in the past with these

crayon-tbl_summary-fns

@shannonpileggi
Copy link
Owner Author

oooh yes that looks awesome!

@ddsjoberg
Copy link
Collaborator

ddsjoberg commented Feb 14, 2022

I asked J about this, and he no longer has access to Photoshop and Illustrator since he retired. Do you know anyone who could make a cute figure like this?

@shannonpileggi
Copy link
Owner Author

Add an example to tbl_ae() showing how to remove the default spanning header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants