export_graph_start andexport_graph_end to export graphs. This is similar to thefamily of functionspdf_fit,png_fit, etc, andfit.off(), but possibly more intuitive.plot_box when a call of the formplot_box(var ~ 1, base) was used.plot_box when a call of the formplot_box(. ~ 1, base) was used.pdftools::pdf_convert popping whenexporting graphs.ggplot2 graph exportationA new set of functions has been created to easily export figuresthat should fit in a document.
The five functions arepdf_fit,png_fit,jpeg_fit,tiff_fit andbmp_fit.
First, if needed, you set the geometry of your document withsetFplot_page. Defaults to US-letter andnormalmargins => this is used to deduce the size the figures will take inthe document.
When usingpdf_fit, instead of providing the heightand width of the figure in absolute terms, you provide the fraction ofthe text-width the figure should take, and the target font-size at whichthe plotting text should be rendered. The size of the plotting text,once the figure is in the final document, is guaranteed.
Usefit.off instead ofdev.off to closethe device and you will get the exported graph displayed in the viewerpane! No need to open your file to see whether the export is proper, youhave it automatically done!
plot_distrsetFplot_distr to set most default valuesof the functionplot_distr.plot_distrMAJOR CHANGE NOT RETRO COMPATIBLE: complete overhaul of theformula. Now the main argument ‘fml’ is of the formweights ~ var | moderator (before it wasvar ~ moderator | weights). Allows to use one-sidedformulas.
Argumenttick_5 becomesat_5 and cantake three values: FALSE, “roman” or “line”. It is used to inform on theindex of the bars by adding a small Roman number under every 5 bars(at_5 = "roman"), or drawing a thick axis line every 5 bars(at_5 = "line"). The default depends on the types of thedata.
When fractions are displayed on top of the bars, very low numbersare now trucated (avoids having to display too small numbers).
The name of the moderator is now displayed in the yaxis whenappropriate for within distributions.
Legend titles are now always displayed by default.
You can display the distribution for several weights at the sametime.
Argumentmod.method has been revamped. It’s meaninghas been split:mod.method takes values in “side”, “split”or “stack” and two new argumentswithin andtotal have been created to define whether the distributionshould be within each moderator or over the total distribution.
The argumenttrunc.method now takes the values“auto”, “right” and “mid” (instead of “auto”, “trimRight” and“trimMid”).
The size of the bottom and left margins are now automaticallyadjusted so the text always fit.
Argumentmod.select now supports regularexpressions.
New argumentmod.NA which display the distributionof missing values.
plot_linesmod.select now supports regularexpressions.mod.NA which display the distribution ofmissing values.plot_boxfixest is removed from help files and calledconditionnaly in the vignette.mod.method = "splitXX" is now supported withlogarithmic datamod.method = "splitXX" +toLog=TRUE: nowsupports the “other” column.labels.tilted=TRUE now possible with logarithmicdata.yaxis.num = TRUE.yaxis.num = TRUE in the presence of moderators couldcause problems in special cases.mod.method = "splitxx" and factorvariables.mod.method = "sidexx" and with theother columns (problem in the bar cutting).bin becomesbin.size.mod.method, the valuewithinandtotal becomesideWithin andsideTotal.