Stéphane Laurent
Stéphane Laurent

Reputation: 84529

Brushing and coloring (automatic brushing) with Ggobi and rggobi

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

enter image description here

When I select a yellow point with the brush, then all the yellow points are active:

enter image description here

This is, I assume, the expected behavior. But when I select a red point, there are still some remaining non-active red points:

enter image description here

Is it a bug ? Is there something to do to get the expected behavior ?

Update

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

Answers (1)

St&#233;phane Laurent
St&#233;phane Laurent

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

Related Questions