umxPlotPredict: 'umxPlotPredict' Take a model and plot the y against...

umxPlotPredictR Documentation

umxPlotPredict Take a model and plot the y against predicted(y)

Description

umxPlotPredict is a function which

Usage

umxPlotPredict(
  model,
  xlab = "Predicted Y",
  ylab = "Observed Y",
  r2x = NULL,
  r2y = NULL,
  font_size = 13,
  rsq = FALSE,
  font = "Times"
)

Arguments

model

lm or other model that understands predict()

xlab

X-axis label (default x).

ylab

Y-axis label (default y).

r2x

x location for the fit summary (default NULL guesses upper-left from the data and prints the guess).

r2y

y location for the fit summary (default NULL guesses upper-left from the data and prints the guess).

font_size

Default 13

rsq

R^2 or r (defaults to FALSE = r)

font

Default "Times"

Value

  • plot you can edit.

See Also

  • ggplot2::ggplot()

Other Plotting functions: ggAddR(), plot.MxLISRELModel(), plot.MxModel(), plot.MxModelTwinMaker(), umx, umxPlot(), umxPlotACE(), umxPlotACE_DE(), umxPlotACE_GLM(), umxPlotACEcov(), umxPlotACEv(), umxPlotCP(), umxPlotDoC(), umxPlotFun(), umxPlotGxE(), umxPlotGxEbiv(), umxPlotIP(), umxPlotSexLim(), umxPlotSimplex()

Examples

data(mtcars)
tmp = lm(mpg ~ wt, data = mtcars)
umxPlotPredict(tmp) # R^2 location guessed (upper-left) and printed
umxPlotPredict(tmp, r2x = 25, r2y = 15)

umx documentation built on Oct. 11, 2026, 5:07 p.m.