bsselectR
bsselectR copied to clipboard
displaying list of plots in tabs
Hi, thank you for sharing your package publicly, I am glad that there is a way to go around using shiny for the markdown. I am trying to use your package to display a list of plots and table in tabs after a selection from the dropdown. Would you be able to show me an example on how I can proceed on doing that? I have these visuals, in tabs at the moment. Please see below for an example code: ` accession_id <- "GSE00000" visual <- make_plots(accession_id)
GSE00000 {.tabset }
"This is a description"
Boxplots
visual$boxplot
Table
visual$table
Histogram
visual$histogram
list_of_visuals <- c("This is a description",visual$boxplot, visual$table, visual$histogram)
quotes <- c(list_of_visuals,
"A fool thinks himself to be wise, but a wise man knows himself to be a fool.",
"My mission in life is not merely to survive, but to thrive; and to do so with some passion,
some compassion, some humor, and some style.")
quotes <- setNames(quotes, c("GSE00000", "Shakespeare", "Angelou"))
bsselect(quotes, type = "text", height = 200)
`
Hi, i think you could try to save the elements (boxplot, histogram and table) as html object with htmltools::save_html() function, and get the files names in a vector to show with bsselect.
Hi, i think you could try to save the elements (boxplot, histogram and table) as html object with htmltools::save_html() function, and get the files names in a vector to show with bsselect.
I'm not sure how to get the files names into a vector with bsselect. Could you give an example?
you see https://walker-data.com/2016/12/rmd-dropdowns/ ????