ggobi-default-20: New ggobi

Description Usage Arguments Details Value Author(s) Examples

Description

Creates a new ggobi instance

Usage

1
2
## Default S3 method:
ggobi(data, args=character(0), mode=character(0), name = deparse(sys.call()[[2]]), ...)

Arguments

data

the name of a file containing the data, or a data frame or matrix containing the values

args

a character vector of command-line arguments

mode

data format GGobi should expect to read the data from, if reading from a file.

name

the name to use in GGobi for the dataset, if one is specified

...

ignored

Details

This function creates a new instance of GGobi with or without new data. Use this function whenever you want to create a new GGobi indepdent of the others—they will not share linked plots. If you want to add another dataset to an existing ggobi, please see [<-.GGobi

There are currently three basic types of functions that you can use with rggobi:

You will generally spend most of your time working with ggobdatas, you retrieve using $.GGobiData, [.GGobiData, or [[.GGobiData. Most of the time these will operate like normal R datasets while pointing to the data in GGobi so that all changes are kept in sync. If you need to force a ggobiDaataset to be an R data.frame use as.data.frame.

Value

A ggobi object

Author(s)

Hadley Wickham <h.wickham@gmail.com>

Examples

1
2
3
4
5
6
7
8
if (interactive()) {
ggobi(ggobi_find_file("data", "flea.csv"))
ggobi(ggobi_find_file("data", "flea.xml"))
ggobi(mtcars)
mtcarsg <- ggobi_get()$mtcars
glyph_colour(mtcarsg)
glyph_colour(mtcarsg) <- ifelse(mtcarsg$cyl < 4, 1, 2)
glyph_size(mtcarsg) <- mtcarsg$cyl}

rggobi documentation built on May 2, 2019, 6:41 a.m.