View source: R/misc_and_utility.R
ggAddR | R Documentation |
Add a fit statistic to a ggplot
ggAddR(model, effect = NA, xloc = 8, yloc = 10)
model |
a statistical model which contains a fit measure. |
effect |
optional hard coded fit/effect. |
xloc |
x location of R. |
yloc |
y location of R. |
plot
umxPlot()
, umxPlotFun()
Other Plotting functions:
plot.MxLISRELModel()
,
plot.MxModel()
,
plot.MxModelTwinMaker()
,
umx
,
umxPlot()
,
umxPlotACE()
,
umxPlotACEcov()
,
umxPlotACEv()
,
umxPlotCP()
,
umxPlotDoC()
,
umxPlotFun()
,
umxPlotGxE()
,
umxPlotGxEbiv()
,
umxPlotIP()
,
umxPlotSexLim()
,
umxPlotSimplex()
## Not run:
m1 = lm(mpg ~ wt, data = mtcars)
p = ggplot2::ggplot(data = mtcars, aes(x = wt, y = mpg))+ geom_point() +geom_smooth()+
ggAddR(m1, effect = NA, xloc=2, yloc= 10); p
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.