---
title: "Program Gallery"
output: rmarkdown::html_vignette
vignette: >
  %\VignetteIndexEntry{Program Gallery}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
```

To understand the system better, let's look at some examples. These examples 
will give you a feel for the overall flow of a **sassy**-enhanced program, 
and allow you to see how the functions work together.

## Index{#top}

* [Example 1: Listing](#listing)
* [Example 2: Demographics table](#demog)
* [Example 3: Figure](#figure)
* [Example 4: Adverse events table](#aetable)
* [Example 5: Vital signs table](#vstable)
* [Example 6: Figure with by group](#figureby)
* [Example 7: Survival analysis](#survival)
* [Example 8: Patient profile](#pprofile)
* [Example 9: Forest plot](#forest)
* [Example 10: Disposition table](#disp)
* [Example 11: Subject listing](#subjlst)
* [Example 12: Combined figure](#combfig)
* [Example 13: Mean change from baseline figure](#changefig)
* [Example 14: AE severity in rows](#aesev)
* [Example 15: Intext table](#intext)
* [Example 16: Shift table](#shift)
* [Example 17: Macro program](#macro)
* [Example 18: Chinese font](#simsun)
* [Example 19: Waterfall plot](#waterfall)

## Gallery

### [Example 1](https://gallery.r-sassy.org/articles/sassy-listing.html) {#listing} 
Creates a simple data listing and log. 
<a href="https://gallery.r-sassy.org/articles/sassy-listing.html">
 <img src="../man/images/listing.png" align="left" alt="Listing example image" />
 </a> 
<br> 
[top](#top)

### [Example 2](https://gallery.r-sassy.org/articles/sassy-dm.html) {#demog}
Creates a table of demographic characteristics.
<a href="https://gallery.r-sassy.org/articles/sassy-dm.html">
<img src="../man/images/dm.png" align="left" alt="Demographics example image" />
</a>
<br>
[top](#top)

### [Example 3](https://gallery.r-sassy.org/articles/sassy-figure.html) {#figure}  
Creates a simple figure. 
<a href="https://gallery.r-sassy.org/articles/sassy-figure.html">
<img src="../man/images/dm_fig1.png" align="left" alt="Figure example image"/>
</a>
<br>
[top](#top)

### [Example 4](https://gallery.r-sassy.org/articles/sassy-ae.html) {#aetable}  
Creates an AE table with a page wrap. 
<a href="https://gallery.r-sassy.org/articles/sassy-ae.html">
<img src="../man/images/ae1.png" align="left" alt="AE example image" />
</a>
<br>
[top](#top)

### [Example 5](https://gallery.r-sassy.org/articles/sassy-vs.html) {#vstable}  
Creates a table of vital signs statistics.
<a href="https://gallery.r-sassy.org/articles/sassy-vs.html">
<img src="../man/images/vital_signs.png" align="left" alt="Vital signs example image" />
</a>
<br>
[top](#top)

### [Example 6](https://gallery.r-sassy.org/articles/sassy-figureby.html) {#figureby}
Creates a figure with a by-group. 
<a href="https://gallery.r-sassy.org/articles/sassy-figureby.html">
<img src="../man/images/vs_pg1.png" align="left" alt="Figure by example image" />
</a>
<br>
[top](#top)

### [Example 7](https://gallery.r-sassy.org/articles/sassy-survival.html) {#survival}  
Perform survival analysis. 
<a href="https://gallery.r-sassy.org/articles/sassy-survival.html">
<img src="../man/images/survival2.png" align="left" alt="Survival analysis example image" />
</a>
<br>
[top](#top)

### [Example 8](https://gallery.r-sassy.org/articles/sassy-profile.html) {#pprofile}
Creates a patient profile report. 
<a href="https://gallery.r-sassy.org/articles/sassy-profile.html">
<img src="../man/images/profile.png" align="left" alt="Patient profile example image" />
</a>
<br>
[top](#top)

### [Example 9](https://gallery.r-sassy.org/articles/sassy-forest.html) {#forest}  
Creates a figure with a forest plot.
<a href="https://gallery.r-sassy.org/articles/sassy-forest.html">
<img src="../man/images/forest.png" align="left" alt="Forest plot example image" />
</a>
<br>
[top](#top)

### [Example 10](https://gallery.r-sassy.org/articles/sassy-ds.html) {#disp}  
Creates a subject disposition table.
<a href="https://gallery.r-sassy.org/articles/sassy-ds.html">
<img src="../man/images/disposition.png" align="left" alt="Disposition example image" />
</a>
<br>
[top](#top)

### [Example 11](https://gallery.r-sassy.org/articles/sassy-plisting.html) {#subjlst}
Creates a subject listing with vital signs by visit. 
<a href="https://gallery.r-sassy.org/articles/sassy-plisting.html">
<img src="../man/images/plisting.png" align="left" alt="Subject listing example image" />
</a>
<br>
[top](#top)

### [Example 12](https://gallery.r-sassy.org/articles/sassy-pfigure.html) {#combfig}  
Creates a combined figure of age groups by treatment.
<a href="https://gallery.r-sassy.org/articles/sassy-pfigure.html">
<img src="../man/images/pfigure.png" align="left" alt="Patchwork figure example image" />
</a>
<br>
[top](#top)

### [Example 13](https://gallery.r-sassy.org/articles/sassy-chgbase.html) {#changefig}  
Creates a Mean Change from Baseline figure for laboratory values. 
<a href="https://gallery.r-sassy.org/articles/sassy-chgbase.html">
<img src="../man/images/chgbase.png" align="left" alt="Change from baseline example image" />
</a>
<br>
[top](#top)

### [Example 14](https://gallery.r-sassy.org/articles/sassy-ae2.html) {#aesev}  
Creates an AE table with severity grades in rows. 
<a href="https://gallery.r-sassy.org/articles/sassy-ae2.html">
<img src="../man/images/aevert.png" align="left" alt="AE Severity example image" />
</a>
<br>
[top](#top)

### [Example 15](https://gallery.r-sassy.org/articles/sassy-intext.html) {#intext} 
Creates both stand-alone and "intext" versions of a demographics table. 
<a href="https://gallery.r-sassy.org/articles/sassy-intext.html">
<img src="../man/images/example15i1.png" align="left" alt="Intext Demographics example image" />
</a>
<br>
[top](#top)


### [Example 16](https://gallery.r-sassy.org/articles/sassy-shift.html) {#shift}  
Creates a shift table of lab values. 
<a href="https://gallery.r-sassy.org/articles/sassy-shift.html">
<img src="../man/images/shift.png" align="left" alt="Shift table example image" />
</a>
<br>
[top](#top)

### [Example 17](https://gallery.r-sassy.org/articles/sassy-macro.html) {#macro}  
Creates a change from baseline table using SASSY Macro. 
<a href="https://gallery.r-sassy.org/articles/sassy-macro.html">
<img src="../man/images/macro1.png" align="left" alt="Change from baseline image" />
</a>
<br>
[top](#top)


### [Example 18](https://gallery.r-sassy.org/articles/sassy-simsun.html) {#simsun}  
Creates a demographics table in Chinese. 
<a href="https://gallery.r-sassy.org/articles/sassy-simsun.html">
<img src="../man/images/dm_simsun.png" align="left" alt="Chinese font example image" />
</a>
<br>
[top](#top)


### [Example 19](https://gallery.r-sassy.org/articles/sassy-waterfall.html) {#waterfall}  
Creates a waterfall plot. 
<a href="https://gallery.r-sassy.org/articles/sassy-waterfall.html">
<img src="../man/images/waterfall.png" align="left" alt="Waterfall plot example image" />
</a>
<br>
[top](#top)

