Re: [R] Boxplot using a shapefile

2015-06-16 Thread Roger Bivand
Boris Steipe boris.steipe at utoronto.ca writes: Your workflow in principle is: - read the image into an object for which you can obtain values-per-pixel in a 2D structure; - read the shapefile and convert into a polygon; - determine the bounding box of the polygon; - use the inout()

Re: [R] Boxplot using a shapefile

2015-06-16 Thread Preethi Balaji
Dear all, Thanks very much for your help! I will keep your suggestions in mind and will get back to you if I get stuck! On Tue, Jun 16, 2015 at 1:28 PM, Roger Bivand roger.biv...@nhh.no wrote: Boris Steipe boris.steipe at utoronto.ca writes: Your workflow in principle is: - read the

[R] Boxplot using a shapefile

2015-06-15 Thread Preethi Balaji
Dear all, I am trying to generate boxplots by giving a shapefile and an image as input. The shapefile takes the pixel values from the image and shows the distribution of pixels in the form of a boxplot. Can somebody please tell me how I can execute this in R? Many thanks! -- Regards, Preethi

Re: [R] Boxplot using a shapefile

2015-06-15 Thread Boris Steipe
Your workflow in principle is: - read the image into an object for which you can obtain values-per-pixel in a 2D structure; - read the shapefile and convert into a polygon; - determine the bounding box of the polygon; - use the inout() function of the splancs package to get a list of booleans