plot.otgrid | R Documentation |
Plot two-dimensional grids or visualize the pivot measure.
## 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", ...)
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. |
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.
No return value, called for side effects.
pivot measure pivot_measure
, grid otgrid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.