bm_call | R Documentation |
bm_call()
excutes a function call on bitmap objects.
Since its first argument is the bitmap object it is more
convenient to use with pipes then directly using base::do.call()
plus it is easier to specify additional arguments.
bm_call(x, .f, ...)
x |
Either a |
.f |
A function to execute. |
... |
Additional arguments to |
The return value of .f
.
font_file <- system.file("fonts/spleen/spleen-8x16.hex.gz", package = "bittermelon")
font <- read_hex(font_file)
bml <- as_bm_list("RSTATS", font = font)
bml <- bm_flip(bml, "both")
bm <- bm_call(bml, cbind, direction = "RTL")
print(bm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.