point_plot_: Generate a customized point plot.

View source: R/utils.R

point_plot_R Documentation

Generate a customized point plot.

Description

Draws a simple point 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,
  smooth = TRUE,
  point_wjitter = 0,
  point_hjitter = 0,
  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.

smooth

logical, should a trend line be displayed.

point_wjitter

width of the point jittering, defaults to 0.

point_hjitter

height of the point jittering, defaults to 0.

silent

logical, display warnings?

cust_theme

custom ggplot2 theme.

...

extra arguments passed to geom_smooth().

Value

a ggplot graphic


PiotrTymoszuk/coxExtensions documentation built on Feb. 6, 2024, 10:58 p.m.