- data
a data object (a data frame or a data.table)
- x_var_name
name of the variable that will go on the x axis
- y_var_name
name of the variable that will go on the y axis
- point_label_var_name
name of the variable that will be used to
label individual observations
- weight_var_name
name of the variable by which to weight
the individual observations for calculating correlation and plotting
the line of fit
- alpha
opacity of the dots (0 = completely transparent,
1 = completely opaque)
- annotate_stats
if TRUE
, the correlation and p-value will
be annotated at the top of the plot
- annotate_y_pos
position of the annotated stats, expressed
as a percentage of the range of y values by which the annotated
stats will be placed above the maximum value of y in the data set
(default = 5). If annotate_y_pos = 5
, and the minimum and
maximum y values in the data set are 0 and 100, respectively,
the annotated stats will be placed at 5% of the y range (100 - 0)
above the maximum y value, y = 0.05 * (100 - 0) + 100 = 105.
- line_of_fit_type
if line_of_fit_type = "lm"
, a regression
line will be fit; if line_of_fit_type = "loess"
, a local
regression line will be fit; if line_of_fit_type = "none"
,
no line will be fit
- ci_for_line_of_fit
if ci_for_line_of_fit = TRUE
,
confidence interval for the line of fit will be shaded
- x_axis_label
alternative label for the x axis
- y_axis_label
alternative label for the y axis
- point_label_size
size for dots' labels on the plot. If no
input is entered for this argument, it will be set as
point_label_size = 5
by default. If the plot is to be
weighted by some variable, this argument will be ignored, and
dot sizes will be determined by the argument point_size_range
- point_size_range
minimum and maximum size for dots
on the plot when they are weighted
- jitter_x_percent
horizontally jitter dots by a percentage of the
range of x values
- jitter_y_percent
vertically jitter dots by a percentage of the
range of y values
- cap_axis_lines
logical. Should the axis lines be capped at the
outer tick marks? (default = TRUE)