| plot.otgrid {gridOT} | R Documentation |
Plots for two-dimensional Optimal Transport
Description
Plot two-dimensional grids or visualize the pivot measure.
Usage
## S3 method for class 'otgrid'
plot(x, num.col = 256, useRaster = TRUE, ...)
## S3 method for class 'otgridtransport'
plot(x, num.col = 256, useRaster = TRUE, back.col = "lightblue", ...)
Arguments
x |
an object of class |
num.col |
number of colors (grey) to use. |
useRaster |
parameter passed to the |
... |
further arguments (currently unused). |
back.col |
color of the background. |
Details
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.
Value
No return value, called for side effects.
See Also
pivot measure pivot_measure, grid otgrid
[Package gridOT version 1.0.1 Index]