plotSolution {dvir}R Documentation

Plot DVI solution

Description

A version of plotDVI() tailor-made to visualise identified individuals, for example as reported by jointDVI().

Usage

plotSolution(dvi, assignment, k = 1, format = "[S]=[M]", ...)

Arguments

dvi

A dviData object.

assignment

A named character of the format c(victim = missing, ...), or a data frame produced by jointDVI().

k

An integer; the row number when assignment is a data frame.

format

A string indicating how identified individuals should be labelled, using ⁠[M]⁠ and ⁠[S]⁠ as place holders for the missing person and the matching sample, respectively. (See Examples.)

...

Further arguments passed on to plotDVI().

Value

NULL.

Examples


res = jointDVI(example2, verbose = FALSE)

plotSolution(example2, res)

# With line break in labels
plotSolution(example2, res, format = "[M]=\n[S]")

# With genotypes for marker 1
plotSolution(example2, res, marker = 1)

# Non-optimal solutions
plotSolution(example2, res, k = 2, pm = FALSE)
plotSolution(example2, res, k = 2, cex = 1.3)


[Package dvir version 3.2.1 Index]