Dear all, I have the following code that draws the US map with its states:
using VegaLite, VegaDatasets
# load JSON file containing map of US
us10m = dataset("us-10m")
# 1. US Map by State
# how to generate plot
p = @vlplot(
width = 640,
height = 360,
title = "US Map by State",
projection = {type = :albersUsa},
data = {
values = us10m,
format = {
type = :topojson,
feature = :states
}
},
mark = {
type = :geoshape,
fill = :lightgray,
stroke = :white
}
)
works perfectly.
How can I adapte this code to produce:
- the map of Brazil with its states.
- the map of the Europe with its capitals
- a general region, with a given points (Lat., Long) and conect some them. Is it possible to download the data from a url and insert this information in Julia?
I would like for these informations. Many thanks forr the attention.