s1d.match: 1-D plot of the matching between two numeric scores

View source: R/S1.match.R

s1d.matchR Documentation

1-D plot of the matching between two numeric scores

Description

This function represents paired scores with evenly spaced labels.

Usage

s1d.match(score1, score2, labels = 1:NROW(score1), at = 0.5, 
  facets = NULL, plot = TRUE, storeData = TRUE, add = FALSE, 
  pos = -1, ...)

Arguments

score1

a numeric vector (or a data frame) used to produce the plot

score2

a numeric vector used to produce the plot with as many values as values (or rows) in score1

labels

the labels' names drawn for each score1 value

at

a numeric vector used as an index

facets

a factor splitting score1 so that subsets of the data are represented on different sub-graphics

plot

a logical indicating if the graphics is displayed

storeData

a logical indicating if the data are stored in the returned object. If FALSE, only the names of the data arguments are stored

add

a logical. If TRUE, the graphic is superposed to the graphics already plotted in the current device

pos

an integer indicating the position of the environment where the data are stored, relative to the environment where the function is called. Useful only if storeData is FALSE

...

additional graphical parameters (see adegpar and trellis.par.get)

Details

Graphical parameters for rugs are available in plines of adegpar. Some appropriated graphical parameters in p1d are also available.

Value

An object of class ADEg (subclass S1.match) or ADEgS (if add is TRUE and/or if facets or data frame for score or data frame for fac are used).
The result is displayed if plot is TRUE.

Author(s)

Alice Julien-Laferriere, Aurelie Siberchicot aurelie.siberchicot@univ-lyon1.fr and Stephane Dray

See Also

S1.match ADEg.S1

Examples

s1d.match(-5:5, 2 * (-5:5))

adegraphics documentation built on Oct. 13, 2023, 5:11 p.m.