display.GGobiData {rggobi}R Documentation

Create a new display

Description

Create a new display for the GGobiData object.

Usage

display.GGobiData(x, pmode="Scatterplot Display", vars=list(X=names(x)), embed=FALSE, ...)

Arguments

x projection mode to use
pmode variables to display, see variables.GGobiDisplay for details
vars If TRUE, returns widget for use with RGtk2
embed
...

Details

This function allows you to create a new display from a GGobiData object. You will need to specify the type of display you want ("Scatterplot Display", "Scatterplot Matrix" and "Parallel Coordinates Display" are the most common), and which variables the plot should be intialised with. Specifying more than two variables only makes sense for scatterplot matrices and pcps.

Many of the plots used in GGobi (eg. the tours and densities plots) are special modes of the scatterplot display. You will need to create a new scatterplot display, change the projection mode to what you want, and then set the variables. Hopefully this will be improved in a future version of rggobi.

Author(s)

Hadley Wickham <h.wickham@gmail.com>

See Also

ggobi_display_types for a list of display types

Examples

g <- ggobi(mtcars)
display(g[1])
display(g[1], vars=list(X=4, Y=5))
display(g[1], vars=list(X="drat", Y="hp"))
display(g[1], "Parallel Coordinates Display")
## Not run: 
display(g[1], "2D Tour")
display(g[1], "2x1D Tour", list(X=c(1,2,3), Y=c(4,5,6)))
## End(Not run) 
display(g[1], "Scatterplot Matrix")

[Package rggobi version 2.1.9 Index]