| umxPlotPredict | R Documentation |
umxPlotPredict Take a model and plot the y against predicted(y)umxPlotPredict is a function which
umxPlotPredict(
model,
xlab = "Predicted Y",
ylab = "Observed Y",
r2x = 1.5,
r2y = 4.5,
font_size = 13,
rsq = FALSE,
font = "Times"
)
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. |
r2y |
y location for the fit summary. |
font_size |
Default 13 |
rsq |
R^2 or r (defaults to FALSE = r) |
font |
Default "Times" |
plot you can edit.
ggplot2::qplot()
Other Plotting functions:
ggAddR(),
plot.MxLISRELModel(),
plot.MxModel(),
plot.MxModelTwinMaker(),
umx,
umxPlot(),
umxPlotACE(),
umxPlotACEcov(),
umxPlotACEv(),
umxPlotCP(),
umxPlotDoC(),
umxPlotFun(),
umxPlotGxE(),
umxPlotGxEbiv(),
umxPlotIP(),
umxPlotSexLim(),
umxPlotSimplex()
data(mtcars)
tmp = lm(mpg ~ wt, data = mtcars)
umxPlotPredict(tmp, r2x = 2, r2y = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.