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

Feature request: Allow bolding and italicizing for group's headers #65

Closed
oranwutang opened this issue Oct 20, 2021 · 4 comments
Closed

Comments

@oranwutang
Copy link
Contributor

Hi there!

In stacked tables there is an option to add headers for each table (group_header argument in tbl_stack()), but those labels can't be easily modified to set them in bold or italics. It would be nice to have a function like:

stacked_table %>%
bold_groupheaders()

Similar to bold_labels()

Thanks in advance and best regards!

@ddsjoberg
Copy link
Collaborator

Hello @oranwutang ! I hope and your family are well!

I like the idea for sure. I do have some other plans for the group headers in the pipeline, however. To avoid conflicts, let's implement this function in bstfun first, and we can migrate it to gtsummary.

Do you want to take a stab at the new function, or do you want to wait until I get around to it ( I may not have time for a while, to be honest). If you want to write it, let's outline it together before you start programming?

@oranwutang
Copy link
Contributor Author

Hi @ddsjoberg! We're fine, thanks!

I'll take the challenge, you know I'm glad to collaborate with you and your team.

Please send me an email with your thoughts about groups headers, I think I'll need some guidance, tho...

In the meantime I'll try to get acquainted with btsfun

@ddsjoberg
Copy link
Collaborator

Great!

Can you open a pull request into bstfun with a new function bold_group_labels()? The script can be empty and we can continue the conversation on GitHub PR page! Thanks @oranwutang !

@ddsjoberg ddsjoberg transferred this issue from ddsjoberg/gtsummary Oct 21, 2021
@ddsjoberg
Copy link
Collaborator

merged!

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

No branches or pull requests

2 participants