View source: R/plot.Explore.WS.Corr.R
plot Explore.WS.Corr | R Documentation |
Provides an exploratory plot that allows for examining the within-subject correlations R (reliabilities) as a function if time lag.
## S3 method for class 'Explore.WS.Corr' plot(x, Est.Corrs=TRUE, Indiv.Corrs=FALSE, Add.CI=FALSE, Add.CI.Smoothed=TRUE, Smoother.Span=0.2, Add.Boot.Corrs=FALSE, Add.CI.Polygon=FALSE, ylim=c(-1, 1), xlab="Time Lag", ylab="Reliability", ...)
x |
A fitted object of class |
Est.Corrs |
Logical. Should the smoothed (loess) correlation function as a function of time lag be added? Default |
Indiv.Corrs |
Logical. Should the estimated correlations for all individual time lags be added? Default |
Add.CI |
Logical. Should a bootstrapped 100(1-α)% Confidence Interval be added around the smoothed correlation function? Default |
Add.CI.Smoothed |
Logical. Should a smoothed bootstrapped 100(1-α)% Confidence Interval be added around the smoothed correlation function? Default |
Smoother.Span |
The smoother span to be used. The smoother span gives the proportion of points in the plot which influence the smooth at each value. Larger values give more smoothness. For details, see https://stat.ethz.ch/R-manual/R-patched/library/stats/html/lowess.html. Defauls |
Add.Boot.Corrs |
Logical. Should the inidividual bootstrapped smoothed (loess) correlation functions be added? Default |
Add.CI.Polygon |
Logical. Similar to |
ylim |
The minimum and maximum values of the Y-axis. Default |
xlab |
The label of the X-axis. Default |
ylab |
The label of the Y-axis. Default |
... |
Other arguments to be passed to the plot function. |
Wim Van der Elst, Geert Molenberghs, Ralf-Dieter Hilgers, & Nicole Heussen
Van der Elst, W., Molenberghs, G., Hilgers, R., & Heussen, N. (2015). Estimating the reliability of repeatedly measured endpoints based on linear mixed-effects models. A tutorial. Submitted.
Explore.WS.Corr, Heatmap
# Open data data(Example.Data) # Explore correlation structure Expl_Corr <- Explore.WS.Corr(OLS.Model="Outcome~as.factor(Time)+ as.factor(Cycle) + as.factor(Condition)", Dataset=Example.Data, Id="Id", Time="Time", Alpha=.05, Number.Bootstrap=50, Seed=123) # explore results summary(Expl_Corr) # plot with correlations for all time lags, and # add smoothed (loess) correlation function plot(Expl_Corr, Indiv.Corrs=TRUE, Add.CI=FALSE, Add.Boot.Corrs=FALSE) # plot bootstrapped smoothed (loess) correlation function plot(Expl_Corr, Add.Boot.Corrs=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.