Plot a lineplot.
plot_lineplot.Rd
Plot a lineplot.
Usage
plot_lineplot(
eatPlot_dat,
facet_var = "TR_BUNDESLAND",
point_est = "est_comparison_none",
point_sig = "sig_comparison_crossDiffTotal",
line_sig = "sig_comparison_trend",
line_se = "se_comparison_none",
brace_label_est = "est_comparison_trend",
brace_label_se = "se_comparison_trend",
brace_label_sig_superscript = NULL,
brace_label_sig_bold = "sig_comparison_trend",
years_lines = list(),
years_braces = list(),
background_facet = "total",
background_subgroup = NULL,
box_facet = NULL,
title_superscripts = NULL,
plot_settings = plotsettings_lineplot()
)
Arguments
- eatPlot_dat
Input is a list prepared by
prep_lineplot()
.- facet_var
Character string of the column name in
eatPlot_dat
containing the variable that should be split over multiple facets. Defaults toNULL
.- point_est
Character string of the column name in
eatPlot_dat
containing the y-values for the plotted points. Defaults toNULL
.- point_sig
Character string of the column name containing significance values for
point_values
. Defaults toNULL
.- line_sig
Character string of the column name containing significance values for
line_values
. Defaults to"sig_Trend_noComp"
, which will show the significance of the difference between two time points.- line_se
Character vector of the column name containing the standard errors for the plotted lines. Defaults to
NULL
, in which case they will be deducted from the line values.- brace_label_est
Character string of the column name containing the brace labels.
- brace_label_se
Character string of the column name containing the standard errors for
label_est
. Will be put in bracktes behindlabel_est
.- brace_label_sig_superscript
Character string of the column name containing significance values for
label_est
. Significant values will be marked by a raised 'a'. Normally, should be the comparison of the trend vs. the trend in whole Germany, which can be found in the trendDiff_cross parameter. Defaults toNULL
, as this parameter is not always provided.- brace_label_sig_bold
Character string of the column name containing significance values for
label_est
. Significant values will be marked as bold. Defaults to"sig_Trend_noComp"
.- years_lines
List of numeric vectors containing the start and end year, between which a trend line should be plotted. Per default, lines are drawn from every year to the next consecutive year.
- years_braces
List of numeric vectors containing the start and end year, between which a brace should be plotted. Per default, braces are drawn from the last year to every other year included in the data.
- background_facet
Character string in the
facet_var
column that is assigned to the whole group. It will not plotted as extra facet, but as background line. Defaults to"Deutschland"
.- background_subgroup
Character string in the
subgroup_var
column that is assigned to the whole group. It will not plotted as extra facet, but in the background line. Defaults toNULL
.- box_facet
Character vector, containing strings from the
seperate_plot_var
-column, that should get a box drawn around them.- title_superscripts
Named list for superscripts at the plot_titles. The name of the list element has to be equal to the title, the value of the list element has to be the superscript. Defaults to
NULL
.- plot_settings
Named list constructed with
plotsettings_lineplot()
. Defaults to a list with all settings set to0
. There are several predefined lists with optimized settings for different plots. Seeplotsettings_lineplot()
for an overview.