Test Case Title |
TC7.10 - CreateHeatmap.R |
Goal |
TBD |
Prerequisites |
Using a PC with a web browser. You need credentials to access to the Node-Red application. The following functionalities are available only for specific Snap4city users with specific privileges. |
Expected successful result |
TBD |
Steps |
|
It’s possible to create heatmap using R. The CreateHeatmap.R script saves a Json with coordinates related to specific sensors and, for each sensors station, the average of a chosen period for a chosen measure, using the function “RealTimeHeatmap”.
Function Parameters:
- city (It's possible to choose a city between Helsinki, Antwerp)
- sensorCategory (For each city is possible to choose the category of sensors)
- varName (For each category is possible to choose (only) one numeric measure/variable)
- hours (It's possible to choose the period in hours. For example, hours=12)
If the chosen city is "Helsinki", it’s possible to select a sensorCategory between "Noise_level_sensor" and "Weather_sensor". For each category, all numeric measures are considered.
If the chosen city is "Antwerp", the only sensorCategory to select is "Weather_sensor" and all numeric measures are considered.
get CreateHeatmap.R : https://www.snap4city.org/download/video/CreateHeatmap.R