How to create interactive tables in R or markdown without using shiny?
0
0
Entering edit mode
4.6 years ago
tara ▴ 30

Hello, I want to create interactive tables combining two lists in R.

I have one list (called GOterms) with GO terms and their statistics and another list (called GO2DEGs) with the genes and their statistics corresponing to the GO terms. The best way would be a table with child table (like shown here), but I could not manage to do this with my data.

All the results of the analysis are combined into one markdown html file and I also want to have this table in the results html file. Another option I tried using shiny is:

---
output: html_document
runtime: shiny
---
```{r echo = FALSE}
selectInput("GO_term", label = "Select GO term:",
choices = names(GOterms))
renderTable(GO2DEGs[[input$GO_term]])
```

This works very nice, but now I have the problem that I cannot put it in my markdown file. I also need to save the output as a html file to share my results.

Do you know a way to embed the shiny script into the markdown file? I am searching for a way to create an interactive table with child tables in markdown.

R • 903 views
ADD COMMENT

Login before adding your answer.

Traffic: 1873 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6