autoplot.partialCor | R Documentation |
Extract and display the correlation modeled via the linear mixed model.
## S3 method for class 'partialCor'
autoplot(
object,
size.text = 16,
limits = c(-1, 1.00001),
low = "blue",
mid = "white",
high = "red",
midpoint = 0,
...
)
## S3 method for class 'partialCor'
plot(x, ...)
object, x |
a |
size.text |
[numeric, >0] size of the font used to display text. |
limits |
[numeric vector of length 2] minimum and maximum value of the colorscale relative to the correlation. |
low, mid, high |
[character] color for the the colorscale relative to the correlation. |
midpoint |
[numeric] correlation value associated with the color defined by argument |
... |
Not used. For compatibility with the generic method. |
A list with two elements
data
: data used to create the graphical display.
plot
: ggplot object.
plot(partialCor)
: Graphical Display For Partial Correlation
if(require(ggplot2)){
data(gastricbypassL, package = "LMMstar")
e.pCor <- partialCor(c(weight,glucagonAUC)~time, repetition = ~visit|id,
data = gastricbypassL)
plot(e.pCor)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.