Learn R Programming

soc.ca (version 0.8.0)

map.array: Array of maps

Description

This function takes a list of map objects and arranges them into an array.

Usage

map.array(x, ncol = 1, title = "", fixed.coord = TRUE, padding = 0.15)

Arguments

x

a list of objects created by one of the mapping functions in the soc.ca package or any other ggplot2 plot

ncol

the number of columns the plots are arranged into

title

the main title of the array

fixed.coord

if TRUE the limits of all plots are set to the same as the largest plot

padding

the distance between the most extreme position and the axis limit

Examples

Run this code
# NOT RUN {
example(soc.ca)
map.array(list(map.ind(result), map.mod(result)), ncol = 2)
# }

Run the code above in your browser using DataLab