TC7.10 - CreateHeatmap.R


Warning message

You can't delete this newsletter because it has not been sent to all its subscribers.

Test Case Title

TC7.10 - CreateHeatmap.R 




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





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 :