plot.shapeEffect: 2D Lollipop plot of qtl effect

Description Usage Arguments Details Author(s) Examples

View source: R/qtleffect_shape.R

Description

Plots scaled shape changes

Usage

1
2
3
## S3 method for class 'shapeEffect'
plot(mshape, effect, scaling = 1, links, labels,
  col.links, ...)

Arguments

mshape

The mean shape. An array of [n.landmarks n.dim]

effect

An array [n.landmarks n.dim] containing the effect (shape changes) defined as the difference between a target shape and the mean shape

scaling

Scaling factor. The target shape = mean shape + effect * scaling

links

An optional matrix defining links between landmarks

Details

Function takes the mean shape, a shape change, and a scaling factor and plots the shape changes as lollipop graph. The function plots either two- or three-dimensional shapes.

Author(s)

Nicolas Navarro

Examples

1
2
3
4
x <- matrix(rnorm(10*3*2), nrow=10)
x <- asShapeArray(x, n.land = 3, n.dim = 2, byrow = TRUE)
mshape <- matrix(c(0,0,1,0,0.5,1), nrow = 3, byrow = TRUE)
plot.shapeEffect(mshape, x[, , 1], scaling = 2, main="Triangle 1")

nnavarro/shapeQTL documentation built on April 30, 2021, 12:10 p.m.