Publishes a figure to the GoFigr service.
publish(
plot_obj,
figure_name = NULL,
input_path = NULL,
input_contents = NULL,
chunk_code = NULL,
image_formats = c("eps"),
data = NULL,
metadata = NULL,
show = TRUE
)
GoFigr revision object
plot to publish
name of the figure. If NULL, it will be inferred from the figure's title
path to the source file
contents of the source file
chunk code, if running R markdown
image formats to save
optional data to save with this figure. The data will be saved as RDS.
optional metadata
whether to display the figure after publication