Added R function to print geojson from a matrix of positions