getMargins | R Documentation |
None yet
getMargins(canvas)
canvas |
A N dimensional matrix (product of png::readPNG()) corresponding to bitmap image. |
None yet
A named 4 vector containing top, right, bottom and left margins
Dave Braze <davebraze@gmail.com>
cnvs <- system.file("extdata/story01.png", package="FDBeye") cnvs <- png::readPNG(cnvs) fcnvs <- apply(cnvs, c(1,2), sum) # flatten to a single plane for convenience ## get margins getMargins(fcnvs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.