Tom-Jenkins / mapmixture

R package and web app for spatial visualisation of admixture on a projected map
GNU General Public License v3.0
37 stars 7 forks source link

Adding a shape file to the base map #10

Closed LauraBertola closed 10 months ago

LauraBertola commented 10 months ago

It would be great if it would be possible to add a shape file, e.g. delineation of a habitat, to the basemap. At this point, it will always overlay the pie charts, and so far I haven't found a way to map the pie charts on top.

Tom-Jenkins commented 10 months ago

Hi Laura,

I've included an example in the README of how you can use internal helper functions from mapmixture to plot a basemap, overlap another vector layer (an sf object), then add pie charts on top.

If you have multiple vector or raster data to overlay on a map, at present I think this approach offers more flexibility and customisation than trying to incorporate this behaviour into the mapmixture() function. The primary purpose of the mapmixture() function is to streamline the plotting of a basemap and the addition of pie charts.

LauraBertola commented 10 months ago

Hi Tom,

Fantastic! I didn't have time to send you the shape file yet (I'm traveling today, sitting at the airport now), but I just looked over the new README and this makes a lot of sense. Thanks a lot for the quick addition!

Laura

On Wed, Nov 22, 2023 at 1:07 PM Tom Jenkins @.***> wrote:

Hi Laura,

I've included an example in the README of how you can use internal helper functions from mapmixture to plot a basemap, overlap another vector layer (an sf object), then add pie charts on top.

If you have multiple vector or raster data to overlay on a map, at present I think this approach offers more flexibility and customisation than trying to incorporate this behaviour into the mapmixture() function. The primary purpose of the mapmixture() function is to streamline the plotting of a basemap and the addition of pie charts.

— Reply to this email directly, view it on GitHub https://github.com/Tom-Jenkins/mapmixture/issues/10#issuecomment-1822650226, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJOXPIEHPWW67H6JDSJVRD3YFXTH7AVCNFSM6AAAAAA7V6B3TCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRSGY2TAMRSGY . You are receiving this because you authored the thread.Message ID: @.***>