I've use R to generate a matrix of points tagged to separate categories. Each point has a lat, long. and category. When I plot them in QGIS (using colored points of the appropriate size) it looks like a territory map - which is the application. The points cluster together in discernible market areas.
I would like to use R to generate shapefiles which follow the color boundaries and which contain the appropriate classification label. I would use those market boundary shapefiles in a variety of other applications.
The size of the matrix is 10000 x 10000.