Plot severity colour on bubble map by datetime

3 views (last 30 days)
Hello !
I'm building a bubble map that shows the number of bottles by size bubble in the specified BUT i'm trying to do the severity not by the number of bottles, but the DATE they were there. So, for now I did this and it works perfectly.
Geobasemap
geolimits([48.50 53.00],[-5.70 6.00])
otrivin=readtable('Otrivinlocation.xlsx');
figure
gb=geobubble(otrivin,'LATITUDE','LONGITUDE',...
'SizeVariable','NBBOTTLES');
head(gb.SourceTable, 7)
gb.SourceTable.Severity=discretize(otrivin.NBBOTTLES,[1 5 10 20 50 100 500],...
'categorical', {'low','many',,'Abundant','High','Extreme'});
gb.ColorVariable='Severity';
But what I try to do now is instead of discretize the nb of bottles, I wanna have the Datetime, so by the colourvariable I will be able to see when they were found (they have been placed at certain location at different dates).
Thanks for the help !!! :)

Answers (1)

Peter Perkins
Peter Perkins on 18 Nov 2020
I would think you'd want to convert the datetimes into something numeric or categorical, based on their years or months or whatever.

Categories

Find more on Dates and Time in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!