| plot.eval.similarity.correlation {wordspace} | R Documentation |
Printing and Plotting Similarity Correlation Evaluation Results (wordspace)
Description
Suitable printing and visualization of evaluation results from eval.similarity.correlation.
The print method displays an evaluation summary (stored in attribute "eval.result") after the full data frame.
The plot method displays a scatterplot of gold standard ratings against DSM distances with optional
regression line (lowess), a summary of evaluation results at the top, and various other formatting options.
Usage
## S3 method for class 'eval.similarity.correlation'
print(x, ...)
## S3 method for class 'eval.similarity.correlation'
plot(x, y, line = TRUE,
categories = NULL, cat.col = NA, cat.legend = "bottomleft",
pch = 20, cex = 1, xlim = NULL, ylim = NULL,
xlab = "human rating", ylab = "distributional model",
main = attr(x, "taskname"), ...)
Arguments
x |
detailed evaluation report from |
y |
unused, must not be specified |
line |
if |
categories |
a factor with one entry for each word pair in the evaluation task.
If specified, points in the scatterplot are colour-coded according to the categories of the corresponding word pairs.
Note that |
cat.col |
a vector of colours to be used for the different categories (defaults to the standard palette built into R) |
cat.legend |
corner of the plot in which to display the legend box for category colours |
pch, cex |
symbol used for plotting and its size |
xlim, ylim |
range of values shown on the x-axis and y-axis, respectively |
xlab, ylab, main |
axis labels and main title of the plot |
... |
all other arguments are passed to the scatterplot function ( |
Details
Word pairs not found in the DSM are always shown as empty boxes in the scatterplot, regardless of the pch parameter.
Author(s)
Stephanie Evert (https://purl.org/stephanie.evert)
See Also
Examples
## Not run:
plot(eval.similarity.correlation(WordSim353, DSM_Vectors, details=TRUE))
## End(Not run)