View source: R/umx_build_umxGxEbiv.R
umxPlotGxEbiv | R Documentation |
Plot GxE results (univariate environmental moderation of ACE components). Options include plotting the raw and standardized graphs separately, or in a combined panel. You can also set the label for the x axis (xlab), and choose the location of the legend.
umxPlotGxEbiv(x, xlab = NA, location = "topleft", separateGraphs = FALSE, ...)
x |
A fitted |
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 |
None
plot()
, umxSummary()
work for IP, CP, GxE, SAT, and ACE models.
umxGxEbiv()
Other Plotting functions:
ggAddR()
,
plot.MxLISRELModel()
,
plot.MxModelTwinMaker()
,
plot.MxModel()
,
umxPlotACEcov()
,
umxPlotACEv()
,
umxPlotACE()
,
umxPlotCP()
,
umxPlotDoC()
,
umxPlotFun()
,
umxPlotGxE()
,
umxPlotIP()
,
umxPlotSexLim()
,
umxPlotSimplex()
,
umxPlot()
,
umx
require(umx)
data(twinData)
## Not run:
selDVs = "wt"; selDefs = "ht"
df = umx_scale_wide_twin_data(twinData, varsToScale = c("ht", "wt"), suffix = "")
mzData = subset(df, zygosity %in% c("MZFF", "MZMM"))
dzData = subset(df, zygosity %in% c("DZFF", "DZMM", "DZOS"))
m1 = umxGxEbiv(selDVs = selDVs, selDefs = selDefs,
dzData = dzData, mzData = mzData, sep = "", dropMissingDef = TRUE)
# Plot Moderation
plot(m1)
umxPlotGxEbiv(m1, xlab = "wt", separateGraphs = TRUE, location = "topleft")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.