Plot severity colour on bubble map by datetime

조회 수: 4 (최근 30일)
alizee de groodt
alizee de groodt 2020년 10월 21일
답변: Peter Perkins 2020년 11월 18일
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 !!! :)

답변 (1개)

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

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by