kitty_plot: Create a plot and write the result to the kitty terminal.

View source: R/kitty_plot.R

kitty_plotR Documentation

Create a plot and write the result to the kitty terminal.

Description

Create a plot and write the result to the kitty terminal.

Usage

kitty_plot(
  expr,
  width = kitty_width(),
  height = 0.8 * kitty_width(),
  units = "px",
  res = NA,
  ...,
  kitty_col = TRUE,
  kitty_bg = kitty_col,
  kitty_fg = kitty_col
)

Arguments

expr

Valid R expression creating the plot.

width

The width of the image. Passed on to png.

height

The height of the image. Passed on to png.

units

The units in which 'height' and 'width' are given. Passed on to png.

res

The resulution of the image. Passed on to png.

...

Passed on to png.

kitty_col

Logical value indicating that the foreground and background colors used in the plot should be set to that of the terminal.

kitty_bg

Logical value indicating that the background color used in the plot should be set to that of the terminal.

kitty_fg

Logical value indicating that the foreground color used in the plot should be set to that of the terminal.

Details

The kitty_fg argument sets fg, col, col.axis, col.lab, col.main and col.sub using par to kitty_foreground.


djvanderlaan/kitty.r documentation built on Feb. 2, 2025, 9:12 p.m.