plot.eval.similarity.correlation | R Documentation |
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.
## 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"), ...)
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 ( |
Word pairs not found in the DSM are always shown as empty boxes in the scatterplot, regardless of the pch
parameter.
Stephanie Evert (https://purl.org/stephanie.evert)
eval.similarity.correlation
## Not run: plot(eval.similarity.correlation(WordSim353, DSM_Vectors, details=TRUE)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.