Learn R Programming

umx (version 1.2.5)

umxPlotGxE: umxPlotGxE

Description

Plot GxE results (univariate environmental moderation of ACE components)

Usage

umxPlotGxE(x, xlab = NA, location = "topleft", separateGraphs = FALSE,
  ...)

Arguments

x
A fitted umxGxE model to plot
xlab
String to use for the x label (default = NA, which will use the variable name)
location
Where to plot the legend (default = "topleft") see ?legend for alternatives like bottomright
separateGraphs
(default = FALSE)
...
Optional additional parameters

Value

  • -

References

- http://tbates.github.io

See Also

- plot(), umxSummary() work for IP, CP, GxE, SAT, and ACE models.

- umxGxE

Other Twin Modeling Functions: umxACESexLim, umxACEcov, umxACE, umxCF_SexLim, umxCP, umxGxE_window, umxGxE, umxIP, umxPlotCP, umxSummaryACEcov, umxSummaryACE, umxSummaryCP, umxSummaryGxE, umxSummaryIP, umx_make_TwinData, umx

Examples

Run this code
require(umx)
data(twinData) 
twinData$age1 = twinData$age2 = twinData$age
selDVs  = c("bmi1", "bmi2")
selDefs = c("age1", "age2")
selVars = c(selDVs, selDefs)
mzData  = subset(twinData, zyg == 1, selVars)
dzData  = subset(twinData, zyg == 3, selVars)
m1 = umxGxE(selDVs = selDVs, selDefs = selDefs, 
 	dzData = dzData, mzData = mzData, dropMissing = TRUE)
plot(m1)
umxPlotGxE(x = m1, xlab = "SES", separateGraphs = TRUE, location = "topleft")

Run the code above in your browser using DataLab