Detailed description |
When calling R‘s legend() function, the argument of col can be a factor object that is used together with the currently set palette()
To achieve the same with rgl‘s legend3d, i have to call it with legend3d(..., col = as.integer(some.factor.object)), which it should do internally.
Currently, the factor seemingly gets treated as character vector, i.e. the levels as colors, which is never right. |
|