plot_weight {sparselink} | R Documentation |
Visualise metric that depends on two parameters
Description
Displays values in y
in a grey scale (white=lowest, black=highest),
for different combinations of the two variables in x
.
The lowest value is indicated by a red cross,
and the lowest value on the diagonal is indicated by a red circle.
Usage
plot_weight(x, y)
Arguments
x |
list with slots source and target |
y |
numeric vector |
Value
Returns NULL
. Generates a plot.
Examples
values <- seq(from=0,to=1,by=0.2)
x <- expand.grid(source=values,target=values)
y <- stats::rexp(n=length(values)*length(values))
plot_weight(x=x,y=y)
[Package sparselink version 1.0.0 Index]