# plot.sra: Plot sequential rank agreement In SuperRanker: Sequential Rank Agreement

## Description

Plot the agreement between lists as a function of the list depth

## Usage

 ``` 1 2 3 4 5 6 7 8 9 10``` ```## S3 method for class 'sra' plot( x, xlim, ylim, xlab = "List depth", ylab = "Sequential rank agreement", add = FALSE, ... ) ```

## Arguments

 `x` Agreement object `xlim` x-axis limits `ylim` y-axis limits `xlab` x-axis lab `ylab` y-axis lab `add` Logical. If `TRUE` add graph to existing plot. `...` Processed by function `prodlim::SmartControl`.

Graph

## Author(s)

Thomas A. Gerds <tag@biostat.ku.dk>

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15``` ```R1=c(1,2,3,4,5,7,6,8,9,10,11,12,13) R2=c(5,11,4,7,8,3,12,13,6,10,9,2,1) a <- sra(list(R1,R2)) plot(a) arand = colMeans(do.call("rbind",lapply(1:20,function(b){ sra(list(sample(R1),sample(R1))) }))) lines(1:length(R1),arand,col=2,lwd=3) l <- c(1,2,3,4,5,7,6,8,9,10,11,12,13) l <- 1:100 aa <- sapply(1:20,function(i){ sra(list(sample(l),sample(l),sample(l)))[i] }) c(mean(aa),sd(aa)) ```

SuperRanker documentation built on Jan. 30, 2021, 1:06 a.m.