Render a plot to the canvas

canvas_plot(canvas, plot, width, height, x = 0, y = 0, anchor = "nw")

Arguments

canvas

a tic_ui 'canvas' element.

plot

object to be plotted. Anything support by ggplot2::ggsave()

width, height

size of plot in pizels

x, y

coorindates for image. default (0, 0)

anchor

anchor point within image for positioning. default: nw Possible values: n, s, e, w, ne, nw, se, sw, center