Add a render function mark to an obsplot

mark_function(g, f, ...)

Arguments

g

an obsplot object

f

render function, defined with htmlwidgets::JS()

...

options passed to define the mark