SCM

[#6030] legend3d col parameter doesn’t accept factors

Date:
2015-02-20 16:43
Priority:
3
State:
Closed
Submitted by:
Philipp Angerer (aphilipp)
Assigned to:
Nobody (None)
Hardware:
All
Product:
None
Operating System:
All
Component:
None
Version:
v1.1
Severity:
minor
Resolution:
Won't Fix
URL:
Summary:
legend3d col parameter doesn’t accept factors

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.

Comments:

Message  ↓
Date: 2015-02-20 17:30
Sender: Duncan Murdoch

legend3d doesn't touch col at all: it just sets up a bitmap canvas and calls the standard legend() function to draw a legend there. I can't see how it would act differently from legend() at all. Could you post some code to illustrate your problem?

Attached Files:

Changes

Field Old Value Date By
status_idOpen2021-02-02 18:03murdoch
close_dateNone2021-02-02 18:03murdoch
ResolutionNone2021-02-02 18:03murdoch
Thanks to:
Vienna University of Economics and Business Powered By FusionForge