Mapping points

Since I look at mercury concentrations at different measurement stations in North America, visualization using a map with values (of your favourite parameter) plotted as colour-coded circles is quite useful. After some trial & error, here is some very basic code to do this –

# Define vector with the values that you would like to see plotted at desired lat/long. Your csv input file loaded as dataframe (Var) must feature the following columns (Site is optional, but useful for labeling)
Site,Para,Lat,Longplotvar <- Var$Para

Your email address will not be published. Required fields are marked *

Comment

Name *

Email *

Website

Spam protection: Sum of 9 + 10 ?*

About…

I am a researcher at Concordia University in Montreal, Canada. My research focuses on the analysis and modelling of urban air quality data. I also use infrared data for chemometric modelling, all of which I do with R and Matlab. For molecular modelling I use the CAABA/MECCA box model. I teach Thermodynamics and Analytical Chemistry.Follow me on Twitter