link_var: Set or query the linking variable in a mutaframe

Description Usage Arguments Value Author(s) See Also Examples

View source: R/data.R

Description

Set or query the linking variable in a mutaframe

Usage

1
2
3

Arguments

data

the mutaframe (typically created by qdata), with an attribute Link

value

the name of the linking variable (or NULL to disable linking); the variable must be a factor (i.e. categorical variable)

Value

link_var returns the name of the linking variable

Author(s)

Yihui Xie <http://yihui.name>

See Also

qdata

Examples

1
2
3
4
5
mf <- qdata(head(iris))
link_var(mf)  # NULL
link_var(mf) <- "Species"  # linking by 'Species'
link_var(mf)
link_var(mf) <- NULL  # disable linking

ggobi/cranvas documentation built on May 17, 2019, 3:10 a.m.