Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lets-Plot: add Lets-Plot to geo-spatial visualisation #50

Closed
ASmirnov-HORIS opened this issue Oct 4, 2023 · 1 comment
Closed

Lets-Plot: add Lets-Plot to geo-spatial visualisation #50

ASmirnov-HORIS opened this issue Oct 4, 2023 · 1 comment

Comments

@ASmirnov-HORIS
Copy link
Contributor

The Lets-Plot library is not mentioned in the Geo-Spatial Visualization section. However, it can work with cartographic data. Detailed information about geocoding can be found here.

Basic example with UK districts:

from lets_plot.geo_data import *

country = geocode_counties().scope('UK').inc_res().get_boundaries()

ggplot() + geom_map(data=country, show_legend=False, size=0.2)

image

Also, you can add an interactive basemap layer to create a beautiful map:

(
    ggplot() 
    + geom_livemap() 
    + geom_map(aes(fill='found name'), data=country, show_legend=False, size=0.2) 
)

image

aeturrell added a commit that referenced this issue Oct 29, 2023
Geo vis with lets-plot, closes Lets-Plot #50
@aeturrell
Copy link
Owner

Fixed in 5a13688

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants