create_gdm_lineplot | R Documentation |
create lineplots based on the I splines extracted from a gdm model with the function 'gdm::isplineExtract'. Used the overview table 'ǹicenames.csv' for graphical parameters as line types and color. Can plot a legend if legend is set to T, but the legend is recommended to be produced by the function 'get_nice_legend'.
create_gdm_lineplot(data, legend = F, ymax = 1, ymin = 0, ribbon = F)
data |
data.table, produced by 'gdm::isplineExtract' and further cleaning (as shown in 'plot_gdm.Rmd'). |
legend |
logical T or F, indicating if the plot or the legend should be returned. |
ymax |
the maximum y value shown. Defaults to 1. |
ymin |
the minimum y value shown. Defaults to 0. |
ribbon |
logical. T if error bands should be shown, F otherwise. |
TODO : add vertical grid lines, remove x axis for above plots
a ggplot2 plot element, with lineplots.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.