plot-methods {dembase} | R Documentation

## Plot a demographic array

### Description

Methods for function `plot` which aim to show the main features of a demographic array. Different formats are used for objects of class `Counts` and `Values`.

### Usage

    ## S4 method for signature 'Counts'
    plot(
      x,
      main = NULL,
      cex.main = 1.2,
      col.main = "black",
      font.main = 2,
      las = 1,
      ...
    )

    ## S4 method for signature 'Values'
    plot(
      x,
      threshold = 20,
      main = NULL,
      cex.main = 1.2,
      col.main = "black",
      font.main = 2,
      las = 1,
      ...
    )

### Arguments

`x` | Object of class `DemographicArray`.
`main` | Title for plot.
`cex.main, col.main, font.main` | The 'character expansion factor', colour, and font to be used for `main`.
`las` | Parameter governing orientation of axis labels. One of `0`, `1`, `2`, or `3`. See `par`.
`...` | Other arguments, which are passed to the underlying plotting functions.
`threshold` | An integer. If the number of values being plotted per category is less than or equal to `threshold` then a boxplot is used; otherwise a stripchart is used.

### See Also

`plot` calls functions `barchart`, `boxplot`, and `stripchart`

### Examples

    library(demdata)
    popn <- Counts(VAPopn)
    plot(popn)

    rates <- Values(VADeaths2)
    plot(rates)

[Package dembase version 0.0.0.119 Index]