create_gdm_lineplot: create lineplots

create_gdm_lineplotR Documentation

create lineplots

Description

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'.

Usage

create_gdm_lineplot(data, legend = F, ymax = 1, ymin = 0, ribbon = F)

Arguments

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.

Details

TODO : add vertical grid lines, remove x axis for above plots

Value

a ggplot2 plot element, with lineplots.


allanecology/multiFunBetadivLuiGDM documentation built on Nov. 12, 2023, 6:16 a.m.