Line plot
wrapper_line_plot_core.Rd
Usage
wrapper_line_plot_core(
data,
x_var,
y_var,
group_var,
color_line_var = NULL,
shape_point_var = NULL,
facet_var = NULL,
box_plot = FALSE,
colors_line = NULL,
palette_line = NULL,
shapes_point = NULL,
colors_box = "snow",
variable_names = NULL,
title = TRUE,
subtitle = TRUE,
xlab = TRUE,
ylab = TRUE,
legend_colors_line_title = TRUE,
legend_shapes_point_title = TRUE,
legend_position = "right",
legend_drop = TRUE,
aspect_ratio = NULL,
facet_label_both = TRUE,
line_size = 1,
line_type = 1,
line_alpha = 1,
smooth = "none",
smooth_method = "lm",
smooth_formula = y ~ x,
smooth_se = FALSE,
smooth_size = 1.5,
smooth_linetype = 1,
stat_summary_fun = "median",
stat_summary_geom = "errorbar",
stat_summary_position = position_dodge(width = 0.2),
point_size = 1.5,
point_alpha = 1,
title_size = NULL,
strip_text_size = NULL,
facet_scales = "fixed",
xlim = NULL,
ylim = NULL,
scale_y_continuous_custome = scale_y_continuous(),
axis_text_x_angle = 0,
axis_text_x_vjust = 1,
axis_text_x_hjust = 0.5,
background_grid_major = "none"
)
wrapper_line_plot_core_strat(
data,
x_var,
y_var,
group_var,
color_line_var = NULL,
shape_point_var = NULL,
facet_var = NULL,
box_plot = FALSE,
strat1_var = NULL,
strat2_var = NULL,
colors_line = NULL,
palette_line = NULL,
shapes_point = NULL,
colors_box = "snow",
variable_names = NULL,
title = TRUE,
xlab = TRUE,
ylab = TRUE,
strat1_label_both = TRUE,
strat2_label_both = TRUE,
legend_colors_line_title = TRUE,
legend_shapes_point_title = TRUE,
legend_position = "right",
legend_drop = TRUE,
aspect_ratio = NULL,
facet_label_both = TRUE,
line_size = 1,
line_type = 1,
line_alpha = 1,
smooth = "none",
smooth_method = "lm",
smooth_formula = y ~ x,
smooth_se = FALSE,
smooth_size = 1.5,
smooth_linetype = 1,
stat_summary_fun = "median",
stat_summary_geom = "errorbar",
stat_summary_position = position_dodge(width = 0.2),
point_size = 1.5,
point_alpha = 1,
title_size = NULL,
strip_text_size = NULL,
facet_scales = "fixed",
xlim = NULL,
ylim = NULL,
scale_y_continuous_custome = scale_y_continuous(),
axis_text_x_angle = 0,
axis_text_x_vjust = 1,
axis_text_x_hjust = 0.5,
background_grid_major = "none",
strat_scales = "fixed",
strat1_nrow = 1,
strat1_ncol = NULL,
strat2_nrow = NULL,
strat2_ncol = 1,
less_legends = FALSE,
return_list = FALSE
)
Arguments
- data
Data frame.
- smooth
Possible values: "none", "pooled", "strat". When "strat", stratification is defined by `color_line_var`. When the x variable is continuous, `geom_smooth` is used. When the x variable is a factor, `stat_summary` is used.
- stat_summary_fun
Possible values: "median" or "mean". When "median", the plotted limits indicate the 25
stat_summary_geomPossible values: "crossbar", "errorbar", "linerange", "pointrange".
stat_summary_positionUsed to define the dodging of the summary lines when smoothing by strata is used.
strat1_varName of the first stratification variable.
strat2_varName of the second stratification variable.
Line plot