NRuler: Add population size ruler

Description Usage Arguments

Description

Adds a ruler for the population size. This function works like the function legend,

Usage

1
2
NRuler(x, y = NULL, Nsize, Nlab = Nsize, N4, size.scale,
  linear.scale = 0.2, log.base = 10, ...)

Arguments

x, y

Position of the population size ruler. If y does not have numeric value, x will support keyword input from the list "bottomright", "bottom", "bottomleft","left", "topleft", "top", "topright", "right" and "center".

Nsize

The population sizes of the ticks on the ruler.

Nlab

The labels on the ticks of the ruler. Default labels are the population index.

N4

Scalar to scale population size.

size.scale

A keyword to define the way population size is scaled and displayed. It supports "log" and "linear".

linear.scale

The scale factor applied to the population size when size.scale = "linear".

log.base

The base of logarithm used when size.scale = "log".

...

Additional arguments can be passed, such as col, lwd, lty.


POPdemog documentation built on May 2, 2019, 8:18 a.m.