ggAncova {ggiraphExtra} | R Documentation |
Make an interactive plot for an ANCOVA model
Description
Make an interactive plot for an ANCOVA model
Usage
ggAncova(x, ...)
## Default S3 method:
ggAncova(x, mapping, use.label = TRUE, use.labels = TRUE, ...)
## S3 method for class 'formula'
ggAncova(x, data, ...)
## S3 method for class 'lm'
ggAncova(x, label = NULL, digits = 1, interactive = FALSE, ...)
Arguments
x |
an object |
... |
additional arguments passed to the generic function |
mapping |
Set of aesthetic mappings created by aes or aes_. |
use.label |
Logical. Whether or not use column label in case of labelled data |
use.labels |
Logical. Whether or not use value labels in case of labelled data |
data |
a data.frame |
label |
A character string of column name be assigned to the label |
digits |
An integer indicating the number of decimal places |
interactive |
A logical value. If TRUE, an interactive plot will be returned |
Methods (by class)
-
default
: Make an interactive plot for an ANCOVA model -
formula
: Make an interactive plot for an ANCOVA model -
lm
: Make an interactive plot for an ANCOVA model
Examples
require(moonBook)
require(ggplot2)
require(ggiraph)
ggAncova(radial,aes(age,NTAV,color=sex),interactive=TRUE)
fit=lm(NTAV~age+HBP,data=radial)
ggAncova(fit,interactive=TRUE)
ggAncova(NTAV~age+DM,data=radial)
[Package ggiraphExtra version 0.3.0 Index]