Skip to content

Feature consideration: Add figure support #373

@billdenney

Description

@billdenney

Summary

I would like to be able to use the formatters package not just for tables and listings but also for graphs. (I realize this is out of the current scope, but I think it could be realized with a surprisingly small change and then formatters would be able to handle all TFL generation.)

What are you trying to do, that you are unable to achieve
with this package as it currently stands?

I am trying to have consistent formatting for graphs for clinical study report appendices to what I have with tables and figures.

  • Provide examples of real-world use cases that this would enable
    and how it solves the problem you described.

Adding consistent headings and footers to graphs is not directly supported with current methods. Using the machinery of formatters could add those headers and footers, especially when combined with the ggtibble package for many combined graphs.

  • How do you solve this now?

I manually use code like:

pdf()
print(my_figure)
grid.text(add_annotations)
dev.off()
  • Have you tried to work around the problem using other tools?

Yes, and I have not found other tools that handle figures consistently with tables and listings.

  • Could there be a different approach to solving this issue?

See above with my current method. Also Rmarkdown/Quarto could be used, but those take longer to generate and are hard to achieve consistent formatting via LaTeX.

As a clinical study statistician, I want to generate my TFL consistently, so that I both have a consistent look and have an easy way to add headers and footers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions