Learn R Programming

soc.ca (version 0.8.0)

map.ellipse.array: Ellipse array

Description

Create seperate maps with ellipses for each level in a factor arranged in an array.

Usage

map.ellipse.array(
  object,
  variable,
  dim = c(1, 2),
  draw.ellipses = TRUE,
  ncol = 2,
  titles = levels(variable),
  main.title = "",
  ...
)

Arguments

object

a soc.ca class object

variable

a factor of the same length as the data.frame used to create object

dim

the dimensions in the order they are to be plotted. The first number defines the horizontal axis and the second number defines the vertical axis.

draw.ellipses

if TRUE ellipses are drawn

ncol

the number of columns the plots are arranged into

titles

a vector of the same length as the number of levels in variable. These are the titles given to each subplot

main.title

the main title for all the plots

...

sends any further arguments to map.select and map.ellipse.

Examples

Run this code
# NOT RUN {
example(soc.ca)
map.ellipse.array(result, active[, 1])
# }

Run the code above in your browser using DataLab