mig.partraces.plot {bayesMig}R Documentation

Plotting MCMC Parameter Traces

Description

Functions for plotting the MCMC parameter traces from the migration model.

Usage

mig.partraces.plot(
  mcmc.list = NULL,
  sim.dir = NULL,
  chain.ids = NULL,
  par.names = mig.parameter.names(),
  nr.points = NULL,
  dev.ncol = 2,
  ...
)

mig.partraces.cs.plot(
  country,
  mcmc.list = NULL,
  sim.dir = NULL,
  chain.ids = NULL,
  par.names = mig.parameter.names.cs(),
  nr.points = NULL,
  dev.ncol = 3,
  ...
)

Arguments

mcmc.list

List of bayesMig.mcmc objects, or an object of class bayesMig.mcmc.set or of class bayesMig.prediction. If it is NULL, the traces are loaded from sim.dir.

sim.dir

Directory with the MCMC simulation results. It is only used if mcmc.list is NULL.

chain.ids

List of MCMC identifiers to be plotted. If it is NULL, all chains found in mcmc.list or sim.dir are plotted.

par.names

Names of parameters for which traces should be plotted. By default all country-independent parameters are plotted if used within mig.partraces.plot, or country-specific parameters are plotted if used within mig.partraces.cs.plot.

nr.points

Number of points to be plotted. If NULL, all points are plotted, otherwise the traces are thinned evenly.

dev.ncol

Number of column for the graphics device. If the number of parameters is smaller than dev.ncol, the number of columns is automatically decreased.

...

Additional graphical parameters.

country

Name or numerical code of a country. It can also be given as ISO-2 or ISO-3 characters.

Details

The functions plot MCMC traces either for country-independent parameters (mig.partraces.plot or for country-specific parameters (mig.partraces.cs.plot, one graph per parameter. One can restrict it to specific chains by setting the chain.ids argument, and to specific parameters by setting the par.names argument.

Value

No return value.


[Package bayesMig version 0.4-6 Index]