View source: R/create_exampleplot.R
create_exampleplot | R Documentation |
Internal function to create an example plot.
create_exampleplot( data, coef_hyper, coef_cubic, plot_height, plot_width, plot_textsize, filename )
data |
A data.table containing the aggregated calibration data. |
coef_hyper |
A list containing the regression parameters of the hyperbolic regression equation. |
coef_cubic |
A list containing the regression parameters of the cubic regression equation. |
plot_height |
A integer value. The height (unit: inch) of the resulting plots (default: 5). |
plot_width |
A integer value. The width (unit: inch) of the resulting plots (default: 7.5). |
plot_textsize |
A integer value. The textsize of the resulting plots (default: 16). |
filename |
A character. The filename, where to store the resulting example plot. |
The function creates an example plot and stores on the local filesystem.
gdat <- rBiasCorrection::example._plot.df_agg coef_h <- rBiasCorrection::example._plot_coef_h coef_c <- rBiasCorrection::example._plot_coef_c create_exampleplot( data = gdat, coef_hyper = coef_h, coef_cubic = coef_c, plot_height = 5, plot_width = 7.5, plot_textsize = 1, filename = paste0(tempdir(), "/exampleplot.png") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.