A simple call to the create_report() function from the DataExplorer package for R
create_report(
data=<DATA>,
output_file='report.html',
y='DepVariable',
report_title='My Simple Report'
)
generates plots that are simply too big. How can this be reset globally?
A package template sets these options globally - see here
As the figure width and height are hardcoded in the template the only way I see to achieve your desired result would be to create a custom template, i.e. download the default template, set your desired width and height (e.g. I used
fig.width = 5andfig.height = 4) and instead of usingcreate_reportusermarkdown::renderto render your report based on the custom template.Note: When using
create_reportthe Rmd uses the package namespace as the environment. Instead, when usingrmarkdown::renderwe have to attachnetworkD3andggplot2manually usinglibrary(). (But of course could you add these to the custom template file as well.)