Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/MayaGans/shinyBody

An SVG clickable body that can be colored using data and returns the clicked on body part
https://github.com/MayaGans/shinyBody

Last synced: 3 months ago
JSON representation

An SVG clickable body that can be colored using data and returns the clicked on body part

Awesome Lists containing this project

README

        

# shinyBody

A custom Shiny input widget built with HTML and CSS that lets you select a body part and will return that body part's name.You can also color limbs based on data by specifying high and low color values:

# Install using GitHub

```{r}
remotes::install_github("MayaGans/shinyBody")
```

# Use Case

```{r}
library(shiny)

ui <- function() {

fluidPage(
bodyInput("human", data = c(rnorm(13, 100))),
verbatimTextOutput("debug")
)
}

server <- function(input, output) {
output$debug <- renderPrint(input$human)
}

shinyApp(ui = ui, server = server)
```