R: How to create multiple maps (rworldmap) using apply?
问题 I want to create multiple maps (similar to this example) using the apply family. Here a small sample of my code (~200 rows x 150 cols). (UN and ISO3 are codes for rworldmap): df <- structure(list(BLUE.fruits = c(12803543, 3745797, 19947613, 0, 130, 4), BLUE.nuts = c(21563867, 533665, 171984, 0, 0, 0), BLUE.veggies = c(92690, 188940, 34910, 0, 0, 577), GREEN.fruits = c(3389314, 15773576, 8942278, 0, 814, 87538 ), GREEN.nuts = c(6399474, 1640804, 464688, 0, 0, 0), GREEN.veggies = c(15508,