Description Usage Arguments Details Author(s) Examples
Set the tour projection from a GGobi tour.
1 | ggobi_display_set_tour_projection(gd, value)
|
gd |
GGobiDisplay object running tour |
value |
tour projection |
If you know the projection you would like to see in the tour, you can use this function to set it. The example illustrates setting the projection to show the first two principle components.
Hadley Wickham <h.wickham@gmail.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | if (interactive()) {
g <- ggobi(mtcars)
d <- displays(g)[[1]]
}
## Not run:
pmode(d) <- "2D Tour"
variables(d) <- list(X=names(mtcars))
ggobi_display_get_tour_projection(d)
pc <- princomp(as.matrix(mtcars))$loadings[,1:2]
ggobi_display_set_tour_projection(d, pc)
pc <- princomp(as.matrix(mtcars), cor=T)$loadings
ggobi_display_set_tour_projection(d, pc)[,1:2]
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.