Group Abstract Group Abstract

Message Boards Message Boards

Understanding Aggregate COVID Curves

Posted 5 years ago

MODERATOR NOTE: coronavirus resources & updates: https://wolfr.am/coronavirus


5 Replies

If the ColorFunction is of the form ColorData[...] it processes it differently from generalized functions. They are equivalent in general, but GeoRegionValuePlot treats them differently.

Isn't that really a bug though? those should be equivalent no?

ColorData[{"RedBlueTones","Reversed"}][#]&[0.3]

would evaluate to:

ColorData[{"RedBlueTones","Reversed"}][0.3]

so then, they are the same?

Unless ColorData[…] is recognized in some special way of course…

POSTED BY: Sander Huisman

Yes, I assume those plateaus are reporting errors of some kind. There are also some negative ones, which are even more suspect.

About the ColorFunction, you also might think that

ColorData[{"RedBlueTones","Reversed"}][#]&

is equivalent to

ColorData[{"RedBlueTones","Reversed"}]

but GeoRegionValuePlot will bin the data if you use the second, but not if you use the first. I think it is much more useful to look at the unbinned data, so I often wrote this weird ColorData[...][#]& construct. I believe there is going to be an option to get around this in a future version.

POSTED BY: EDITORIAL BOARD
POSTED BY: Robert Nachbar
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard