Learn R Programming

rsixel (version 0.0.4)

sixel: SIXEL graphics device

Description

A graphics device that outputs SIXEL sequences to the console when closed. This device wraps the png() device and encodes the output as SIXEL.

Usage

sixel(
  file = "",
  width = 480,
  height = 480,
  max.colors = 256,
  iter.max = 10,
  background = "white",
  ...
)

Value

The device number (invisible).

Arguments

file

A connection, or a character string naming the file to print to. This parameter will be passed to cat. Default is "" (stdout).

width

integer, width of the output image in pixels. Default is 480.

height

integer, height of the output image in pixels. Default is 480.

max.colors

integer, max colors of the palette. The maximum is 256. This parameter will be passed to sixelEncode. Default is 256.

iter.max

integer, maximum number of iterations for k-means clustering. This parameter will be passed to sixelEncode. Default is 10.

background

character, background color to blend with for pixel with transparency. Default is "white".

...

Additional arguments passed to png().

Examples

Run this code
sixel()
plot(c(1, 2))
dev.off()

Run the code above in your browser using DataLab