Skip to content

Add sel_plot function #1

@bschneidr

Description

@bschneidr

This function would ultimately have a result similar to sel_image() in that the resultant HTML/Javascript would cycle through base 64 images or image file references. However, when the user is working in RMarkdown, they would feed plot objects to the function, rather than feeding image file references.

plot_a <- qplot(x = Sepal.Length, y = Sepal.Width, data = iris)
plot_b <- qplot(x = mpg, y = wt, data = mtcars)
sel_plot(sel_id = "datasets",
         options = list(a = plot_a, b = plot_b),
         embed = TRUE)

As with sel_image(), the user can choose whether to have base-64 images or linked image files.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions