Open
Description
Line 211 in 0016c07
I was a bit confused when running the last code block (under the title "Circle Markers") of the example given at https://rstudio.github.io/leaflet/markers.html
When the code is written as pal <- colorFactor(c("navy", "red"), domain = c("ship", "pirate"))
, then it is highly likely that the user's intention is to have navy
for ship
, and red
for pirate
.
Therefore it makes more sense that colorFactor
should assume that the domain
vector is already ordered (ordered = TRUE
) unless stated otherwise.
Metadata
Metadata
Assignees
Labels
No labels