gof_baseplot: Base plot for gof plots

View source: R/gof.R

gof_baseplotR Documentation

Base plot for gof plots

Description

This is the default base plot for goodness-of-fit diagnostic plots. It produces a scatterplot with a LOESS smoother. The points are blue, and the LOESS smoother is red. The plot has a square aspect ratio. It uses the Certara theme. Other elements (e.g. reference lines) can be added to the plot afterwards. The default aesthetics (x and y) and labels are also added subsequently. The base plot can be overridden using the baseplot parameter of the specific GOF function.

Usage

gof_baseplot(data, highlight, ..., loess.args = list())

Arguments

data

A data.frame.

highlight

(Optional) A 2-level factor, evaluated within data, indicating a subset of points that are to be highlighted on the plot. Typically, these may be outliers, or a specific subset of interest. Those points belonging to the subset will be drawn with a different color and symbol, and a legend will appear as well.

...

Additional arguments (ignored).

loess.args

A list of arguments passed to geom_loess_c.

Value

A ggplot object.


certara/ggcertara documentation built on Feb. 28, 2024, 5:01 a.m.