Description Usage Arguments Value
View source: R/nice_scatter_plot_w_outliers.R
nicer looking scatter plot with outlier points labelled.
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
)
|
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? |
scatter plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.