## S3 method for class 'linkdat':
plot(x, marker = NULL, alleles = NULL, sep = "/", missing = "-",
id.labels = x$orig.ids, title = paste("Family", x$famid),
available = FALSE, col = 1, deceased = numeric(0),
starred = numeric(0), aff2 = NULL, margins = c(4.1, 1, 4.1, 1), ...)
## S3 method for class 'singleton':
plot(x, marker = NULL, alleles = NULL, sep = "/", missing = "-",
id.labels = x$orig.ids, title = paste("Family", x$famid),
available = FALSE, col = 1, starred = numeric(0), margins = c(4.1, 1, 4.1, 1),
symbolsize=4, offset=0.5+0.2*symbolsize, textsize=1, ...)
linkdat
object.marker
object, or a list of marker
objects. If NULL, no genotypes are plotted.
If a marker
object (or a list of such), the genotypes plot.linkdat
and plot.singleton
.plot.linkdat
: Arguments passed on to plot.pedigree
in the kinship2
package. In particular symbolsize
and
cex
can be useful.plot.pedigree
in the package kinship2
package.plot.pedigree
data(toyped)
x = linkdat(toyped)
plot(x, marker=1, alleles=c("a1","a2"), sep="| ", deceased=2)
y = singleton(id=1)
m = marker(y, 1, c('A',0), alleles=c('A','B'))
plot(y, marker=m, id="indiv 1", title="Singleton", available=TRUE)
Run the code above in your browser using DataLab