Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/MayaGans/shinyBody
- Owner: MayaGans
- License: other
- Created: 2020-06-12T20:23:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-17T17:43:44.000Z (over 4 years ago)
- Last Synced: 2024-05-21T02:10:07.440Z (6 months ago)
- Language: R
- Size: 340 KB
- Stars: 40
- Watchers: 6
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - MayaGans/shinyBody - An SVG clickable body that can be colored using data and returns the clicked on body part (R)
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)
```