boxuancui / DataExplorer

Automate Data Exploration and Treatment
http://boxuancui.github.io/DataExplorer/
Other
512 stars 88 forks source link

Charts run off the edge of PDF pages #169

Open tcash21 opened 2 years ago

tcash21 commented 2 years ago

I'm using the below command in a shiny app to generate a PDF report using the output from create_report. I've tried several datasets and for some reason the charts sometimes leak off the edge of the PDF pages (see screenshot). Thank you for any help.

the_report_file <- tempfile(tmpdir = ".", pattern = "report", fileext =".pdf")
create_report(for_profile, output_file = the_report_file, y = input$col_dependent, output_format = pdf_document(), config = configure_report(add_plot_str = FALSE))

image

boxuancui commented 2 years ago

Hi @tcash21 thanks for the information, and I can re-produce this with any dataset. While I do not have an immediate solution, please generate a html report and manually save it as pdf, if that is an option. I tested that route, and the pdf report looks OK.

Thanks again for raising this issue!