Skip to content

JoachimGoedhart/ggPlotteR

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
December 11, 2019 11:48
December 11, 2019 11:48
January 27, 2022 14:22
December 13, 2019 09:31
December 17, 2019 16:19
December 11, 2019 11:48
June 20, 2022 17:28
December 11, 2019 12:18
June 20, 2022 17:28
June 20, 2022 17:28
December 11, 2019 11:48
December 11, 2019 11:52

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

About

A Shiny App that demonstrates how plots are encoded with ggplot2:

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published