Learn R Programming

LMMstar (version 1.1.0)

autoplot.partialCor: Graphical Display For Partial Correlation

Description

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

Usage

# S3 method for partialCor
autoplot(
  object,
  size.text = 16,
  limits = c(-1, 1.00001),
  low = "blue",
  mid = "white",
  high = "red",
  midpoint = 0,
  ...
)

# S3 method for partialCor plot(x, ...)

Value

A list with two elements

  • data: data used to create the graphical display.

  • plot: ggplot object.

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.

Functions

  • plot(partialCor): Graphical Display For Partial Correlation

Examples

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

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

Run the code above in your browser using DataLab