plot.sra | R Documentation |
Plot the agreement between lists as a function of the list depth
## S3 method for class 'sra'
plot(
x,
xlim,
ylim,
xlab = "List depth",
ylab = "Sequential rank agreement",
add = FALSE,
...
)
x |
Agreement object |
xlim |
x-axis limits |
ylim |
y-axis limits |
xlab |
x-axis lab |
ylab |
y-axis lab |
add |
Logical. If |
... |
Processed by function |
Graph
Thomas A. Gerds <tag@biostat.ku.dk>
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.