Skip to content
A Shiny App that demonstrates how plots are encoded with ggplot2:
R HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
Cancer_over_time.csv
Data-Vulcano-plot.csv
LICENSE
README.md
about.html
app.R
gapminder-FiveYearData.csv
ggPlotteR-output.png
ggplot2-layer-by-layer.R

README.md

ggPlotteR

A Shiny App that demonstrates how plots are encoded with R/ggplot2

Running the App

The web-tool runs from a shiny server, and can be accessed at: https://huygens.science.uva.nl/ggPlotteR/

Alternatively, the app can run from R/Rstudio.

Preparations

The app depends on the R packages 'shiny' and 'ggplot2'. Run this command in R/Rstudio to download and install the packages (only needs to be done once):

install.packages("shiny", "ggplot2")

o The first option is running it directly from Github. In the command line (in R or Rstudio) type:

shiny::runGitHub('ggPlotteR', 'JoachimGoedhart')

o The second option is download the app and to use it offline:

-download the app.R and csv file (gapminder-FiveYearData.csv) with example data.

-Run RStudio and load app.R

-Select 'Run All' (shortcut is command-option-R on a Mac) or click on "Run App" (upper right button on the window)

This should launch a web browser with the Shiny app.

Credits

The code for the shiny app is partially derived from ggplotGUI by Gert Stulp
The idea of line-by-line encoding with ggplot2 is taken from Evangeline Reynolds and elegantly explained in this flipbook (it may take a moment to load the flipbook completely)

ggPlotteR is created and maintained by Joachim Goedhart (@joachimgoedhart)

Example output

alt text

You can’t perform that action at this time.