nice_scatter_plot_w_outliers: nice_scatter_plot_w_outliers

Description Usage Arguments Value

View source: R/nice_scatter_plot_w_outliers.R

Description

nicer looking scatter plot with outlier points labelled.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
nice_scatter_plot_w_outliers(
  df,
  x_var,
  y_var,
  variable_to_label,
  low_outlier_cutoff = -0.5,
  high_outlier_cutoff = 0.5,
  fit_line = F,
  calculate_rsq = T,
  calculate_R = T,
  label_outliers = T
)

Arguments

df

dataframe with data to plot.

x_var

name of X variable column in df as string.

y_var

name of Y variable column in df as string.

variable_to_label

column in df with the labels you want on the plot for outliers.

low_outlier_cutoff

bottom residual cutoff to select outliers, default -0.5

high_outlier_cutoff

top residual cutoff to select outliers, default 0.5

fit_line

plot a fitted line on the plot?

calculate_rsq

calculate Rsq?

calculate_R

calculate R?

label_outliers

label outliers on plot?

Value

scatter plot.


mvhunter1/mvhspatialplots documentation built on April 24, 2021, 10:52 a.m.