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

Too big figures in the report #73

Open
scilexenko opened this issue Feb 20, 2025 · 1 comment
Open

Too big figures in the report #73

scilexenko opened this issue Feb 20, 2025 · 1 comment
Labels
Bug Fixed This bug has been addressed and resolved in the latest update. bug Something isn't working

Comments

@scilexenko
Copy link

Hi,

I’ve been using your very helpful MicrobiomeStat package and wanted to generate a report. However, in the PDF version, the figures appear too large and don’t fit on the page.

I tried adjusting pdf.wid and pdf.hei, but it didn’t seem to help.

Could you advise on how to properly resize the figures?

Thank you for your help!

Best,
Ivan

Image

@scilexenko scilexenko added the bug Something isn't working label Feb 20, 2025
@cafferychen777
Copy link
Owner

Dear Ivan,

Thank you for reaching out and for using MicrobiomeStat! I understand the issue with the figure sizing in the PDF report. Looking at the report generation code, I've noticed that the figure dimensions might be set too large. Let's adjust those parameters to make the figures fit properly on the page.

In the report template, please locate the chunk settings that look like this:

{r taxa-areaplot-longitudinal-print, echo=FALSE, message=FALSE, results=result.output, fig.align='center', fig.width = 25, fig.height = 15, warning = FALSE}

I recommend modifying the fig.width and fig.height parameters to more reasonable values:

Please try these adjusted parameters and let me know if the figures are now displaying at a more appropriate size in your PDF report.

Best regards,
Caffery

@cafferychen777 cafferychen777 added the Bug Fixed This bug has been addressed and resolved in the latest update. label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Fixed This bug has been addressed and resolved in the latest update. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants