plot Potts model data.
# S3 method for raw
image(x, col = c("white", "red", "blue", "green",
"black", "cyan", "yellow", "magenta"), ...)
an R vector of class "raw"
that encodes a realization
of a Potts model, typically the output of packPotts
or of potts
.
a vector of colors. Must be as many as number of colors of Potts model.
other arguments passed to image.default
.
Too slow for large images. Needs to be rewritten for efficient plotting.
potts