autoplot.partialCor {LMMstar}R Documentation

Graphical Display For Partial Correlation

Description

Extract and display the correlation modeled via the linear mixed model.

Usage

## 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, ...)

Arguments

object, x

a partialCor object.

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 mid.

...

Not used. For compatibility with the generic method.

Value

A list with two elements

Functions

Examples

if(require(ggplot2)){
data(gastricbypassL, package = "LMMstar")

e.pCor <- partialCor(c(weight,glucagonAUC)~time, repetition = ~visit|id,
                     data = gastricbypassL)
plot(e.pCor)
}


[Package LMMstar version 1.1.0 Index]