Draws the picture as it stood at one iteration of a search recorded by
surreal_trace(), or the path the search took.
Arguments
- x
A
surreal_traceobject.- iteration
Integer. The iteration to draw, or to mark on the path. Default is the last one.
- type
Character.
"picture"(default) plots the fitted values of the iteration against the residuals."trace"plots the distance of the fitted values from their targets at every iteration, on a log scale.- ...
Further arguments passed to
plot().
Examples
set.seed(114)
trace <- surreal_trace(r_logo_image_data)
plot(trace, iteration = 2)
plot(trace, type = "trace")