Learn R Programming

recommenderlab (version 0.1-9)

plot: Plot Evaluation Results

Description

Creates precision-recall or ROC plots for recommender evaluation results.

Usage

## S3 method for class 'evaluationResults':
plot(x, y,
        avg = TRUE, add=FALSE, type= "b", annotate = FALSE, ...)
## S3 method for class 'evaluationResultList':
plot(x, y,
        xlim=NULL, ylim=NULL, col = NULL, pch = NULL, lty = 1,
        avg = TRUE, type = "b", annotate= 0, legend="bottomright", ...)

Arguments

x
the object to be plotted.
y
a character string indicating the type of plot (e.g., "ROC" or "prec/rec").
avg
plot average of runs?
add
add to a plot?
type
line type (see plot).
annotate
annotate N (recommendation list size) to plot.
xlim,ylim
plot limits (see plot).
col
colors (see plot).
pch
point symbol to use (see plot).
lty
line type (see plot)
legend
where to place legend (see legend).
...
further arguments passed on to plot.

See Also

evaluationResults, evaluationResultList. See evaluate for examples.