I am using the great PlotlyJS package for map visualization. I want to have two subfigures with USA and Europe map. I can the following code, but the subfigures do not scale adequate
using PlotlyJS, DataFrames
using XLSX
using Plots
#plotlyjs()
df = DataFrame(XLSX.readtable("myfile.xlsx", "mysheet"))
function maps1(df)
marker = attr(size=df[!, :size],
color=df[!, :color],
cmin=0,
cmax=60,
colorscale="Greens",
colorbar=attr(title="Some rate",
ticksuffix="%",
showticksuffix="last"),
line_color="black")
trace_europe = scattergeo(;mode="markers", lat=df[!, :lat], lon=df[!, :lon],
marker=marker, name="Europe Data")
trace_asia = scattergeo(;mode="markers", lat=df[!, :lat], lon=df[!, :lon],
marker=marker, name="Asia Data")
layout_europe = Layout(geo_scope="europe", geo_resolution=50, width=500, height=550,
margin=attr(l=0, r=0, t=10, b=0))
plot_europe=PlotlyJS.plot(trace_europe, layout_europe)
layout_asia = Layout(geo_scope="asia", geo_resolution=50, width=500, height=550,
margin=attr(l=0, r=0, t=10, b=0))
plot_asia=PlotlyJS.plot(trace_asia, layout_asia)
p = [plot_europe plot_asia]
display(p)
PlotlyJS.savefig(p,"file.png")
end
maps1(df)