Reputation: 84529
Using the rggobi
package I launch Ggobi with specified colors:
library(rggobi)
g <- ggobi(iris)
clustering <- hclust(dist(iris[,1:4]), meth="average")
classes <- cutree(clustering, 3)
glyph_colour(g[1]) <- classes
When I select a yellow point with the brush, then all the yellow points are active:
This is, I assume, the expected behavior. But when I select a red point, there are still some remaining non-active red points:
Is it a bug ? Is there something to do to get the expected behavior ?
Mmmm.. actually this is not the expected behaviour : this is not what we get by running the automatic brushing in Ggobi by selecting a variable.. I'm pursuing my investigations
Upvotes: 2
Views: 196
Reputation: 84529
There's no bug actually, I did something bad. The behaviour shown in my question occurred because I had selected a variable (Species
in the iris
dataset) as the identifier variable for the brushing. Thus, when selecting one point, all points belonging to the same level of this variable were activated.
I can delete this thread... though there's no cost to keep it.
Upvotes: 1