point_plot_: Generate a customized scatter plot.

View source: R/utils_qc.R

point_plot_R Documentation

Generate a customized scatter plot.

Description

Draws a simple scatter plot for model diagnostic purposes.

Usage

point_plot_(
  data,
  x_var,
  y_var,
  x_lab = x_var,
  y_lab = y_var,
  plot_title = NULL,
  plot_subtitle = NULL,
  plot_tag = NULL,
  point_wjitter = 0.01,
  point_hjitter = 0.01,
  point_alpha = 0.75,
  smooth = TRUE,
  silent = TRUE,
  cust_theme = ggplot2::theme_classic(),
  ...
)

Arguments

data

data frame.

x_var

name of the variable to be shown in the x axis.

y_var

name of the variable to be shown in the y axis.

x_lab

x axis title.

y_lab

y axis title.

plot_title

plot title.

plot_subtitle

plot subtitle.

plot_tag

plot tag.

point_wjitter

horizontal jittering of the points.

point_hjitter

vertical jittering of the points.

point_alpha

plot point alpha.

smooth

logical, should a trend line be displayed.

silent

logical, display warnings?

cust_theme

a custom ggplot theme.

...

extra arguments passed to geom_smooth().

Details

As per design, takes the output of get_qc_tbl() as data argument, color-codes model potential outliers.

Value

a ggplot graphic


PiotrTymoszuk/caretExtra documentation built on Oct. 15, 2023, 10:03 p.m.