Description Usage Arguments Details Author(s) See Also Examples
Create a new display for the GGobiData object.
1 2 |
x |
GGobiData object |
pmode |
projection mode to use |
vars |
variables to display, see |
embed |
If TRUE, returns widget for use with RGtk2 |
... |
ignored |
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.
Hadley Wickham <h.wickham@gmail.com>
ggobi_display_types
for a list of display types
1 2 3 4 5 6 7 8 9 10 11 12 | if (interactive()) {
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)))
display(g[1], "Scatterplot Matrix")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.