Plot two-dimensional grids or visualize the pivot measure.
# S3 method for otgrid
plot(x, num.col = 256, useRaster = TRUE, ...)# S3 method for otgridtransport
plot(x, num.col = 256, useRaster = TRUE, back.col = "lightblue", ...)
No return value, called for side effects.
an object of class "otgrid" or "otgridtransport"
number of colors (grey) to use.
parameter passed to the image function.
further arguments (currently unused).
color of the background.
For objects of class "otgrid", the grid is plotted as a greyscale image.
For objects of class "otgridtransport", the pivot measure is visualized as follows: the two grids of the transport are plotted
in the left upper (from) and right lower (to) corner. The pivot measure is in the left lower corner such that the marginals match.
pivot measure pivot_measure, grid otgrid