Description Usage Arguments Value Author(s) See Also Examples
NG_data objects wrap the data to be explored and some meta data such as the data name, variable short names, the group identifier and text labels for each observation.
1 |
name |
Character string containing no spaces. Note that for a
single navGraph session, the names of all the NG_data objects passed by
to |
data |
|
shortnames |
If the variable names of the data argument are too long or contain spaces, shortnames can be specified. |
group |
Vector of group identifiers for each observation. For the tk2d display, one can use color names (see
|
labels |
Factor- or character sting vector with labels for each observation. |
NG_data object.
Adrian Waddell and R. Wayne Oldford
navGraph
, shortnames-methods
,
ng_get-methods
, ng_set-methods
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ## minimal example
ng.iris <- ng_data(name = "iris", data = iris[,1:4])
ng.iris ## see output
## full specification
ng.iris <- ng_data(name = "iris", data = iris[,1:4],
shortnames = c('s.L', 's.W', 'p.L', 'p.W'),
group = iris$Species,
labels = substr(iris$Species,1,2))
## see shortnames
shortnames(ng.iris)
## change shortnames
shortnames(ng.iris) <- c("a","b","c","d")
## see variable names
names(ng.iris)
## change variable names
names(ng.iris) <- LETTERS[1:4]
## ng_get
ng_get(ng.iris)
ng_get(ng.iris,"group")
## ng_set
ng_set(ng.iris)
ng_set(ng.iris,"group") <- iris$Species
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.