png("legend.png", width = 800, height = 400, res = 110)
library(maplegend)
par(mfrow = c(1,3), mar = c(1,1.5,2,1.5))
plot.new()
plot.window(xlim = c(0, 1), ylim = c(0, 1), asp = 1)
box()
leg(type = "prop", val = c(10, 50, 100), pos = "topleft")
leg(type = "choro", val = c(10, 20, 30, 40, 50), pos = "left")
leg(type = "symb", val = c("A", "B", "C"), pos = "bottomleft")
title("Aspect ratio: 1")
plot.new()
plot.window(xlim = c(0, 1), ylim = c(0, 1), asp = .5)
box()
leg(type = "prop", val = c(10, 50, 100), pos = "topleft")
leg(type = "choro", val = c(10, 20, 30, 40, 50), pos = "left")
leg(type = "symb", val = c("A", "B", "C"), pos = "bottomleft")
title("Aspect ratio: 0.5")
plot.new()
plot.window(xlim = c(0, 1), ylim = c(0, 1), asp = 2)
box()
leg(type = "prop", val = c(10, 50, 100), pos = "topleft")
leg(type = "choro", val = c(10, 20, 30, 40, 50), pos = "left")
leg(type = "symb", val = c("A", "B", "C"), pos = "bottomleft")
title("Aspect ratio: 2")
dev.off()