---
title: "RxODE and Shiny"
author: "Matthew L. Fidler, Melissa Hallow, and Wenping Wang"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
  %\VignetteIndexEntry{RxODE and Shiny}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

```{r, echo=FALSE}
options(cli.unicode=FALSE, crayon.enabled=FALSE);
options(knitr.table.format = "html")
htmltools::img(src = knitr::image_uri("logo.png"), 
               alt = 'RxODE', 
               style = 'position:absolute; top:0; right:0; padding:10px; border: 0;')
```

# Facilities for generating R shiny applications

An example of creating an
R [shiny application](http://shiny.rstudio.com) to interactively
explore responses of various complex dosing regimens is available at
http://qsp.engr.uga.edu:3838/RxODE/RegimenSimulator.  Shiny
applications like this one may be programmatically created with the
experimental function `genShinyApp.template()`.

The above application includes widgets for varying the dose, dosing
regimen, dose cycle, and number of cycles.

```

genShinyApp.template(appDir = "shinyExample", verbose=TRUE)

library(shiny)
runApp("shinyExample")

```

[Click here to go to the Shiny App](http://qsp.engr.uga.edu:3838/RxODE/RegimenSimulator)


# Exploring parameter fits graphically using shiny

An RxODE object can be explored with `rxShiny(obj)`.  `rxShiny()` will also allow you to try 
new models to see how they behave.
