Coder Social home page Coder Social logo

ggplotwithyourdata's Introduction

ggplotwithyourdata

R Shiny app as a handy inteface to ggplot2. It enables you to quickly explore your data to detect trends on the fly. You can do scatter plots, dotplots, boxplots, barplots, histograms and densities. For a quick overview head to this Youtube Tutorial .

Export Plots and Plot Code tabs contributed by Dean Attali. Once a plot is saved in the X/Y Plot tab by providing a name and hitting the Save plot star button it will become available for exporting. You can export in portrait, landscape and multiple plots per page.
Plot Code will let you look at the source code that generated the plot with the various options.

Quick summary statistics tables using Benjamin Rich table1 package.

CSV Data Input

  • [read.csv("youruploadeddata.csv",na.strings = c("NA","."))]

Data Manipulations

  • Change continuous variable to be treated as categorical
  • Change continuous variable to categories with a specified number of bins or by supplying values for the bins start/end
  • Up to six sequential filters for categorical and continuous variables
  • Renaming and reordering of the levels of categorical variable(s)
  • Combining two categorical variables into one
  • Rounding a numerical variable to a specified number of digits

Summary/Regression functions

  • Quantile Regression
  • Smooth/Linear/Logistic Regressions
  • Mean Confidence Intervals
  • Median Prediction Intervals
  • Kaplan-Meier
  • Correlation Coefficients

ggplot2 built-in functionality

*facet_grid and facet_wrap

  • Group, color, size, fill mappings
  • Controlling y and x axis labels, legends and other commonly used theme options.
  • Adding a title, subtitle and a caption

Running Information

Make sure to have all required packages installed shiny, shinyjs, ggplot2, ggrepel, scales, DT, tidyr, dplyr, Hmisc, quantreg, markdown, ggkm, colourpicker and table1. The app will try to install ggkm and table1 (if not found) using the commands below:

install.packages(c("shiny","shinyjs","ggplot2","scales","DT","tidyr","dplyr","Hmisc","quantreg","markdown","colourpicker","devtools"))
devtools::install_github("sachsmc/ggkm")
devtools::install_github("benjaminrich/table1")

Make sure that you are using the this version of ggrepel 0.70 or later.

devtools::install_github("slowkow/ggrepel")

The main app contains several testing apps the main app can be run using this command:

shiny::runGitHub('ggplotwithyourdata', 'smouksassi', subdir = 'shinyapp')

Try to reproduce the steps below using the included sample_df.csv.

Example 1

Example use case 1 with the included sample_df.csv.

Example 2

Example use case 2 with the included sample_df.csv.

Example 3

Example use case 3 with the included sample_df.csv.

Example 4

Example use case 4 with the included sample_df.csv.

ggplotwithyourdata's People

Contributors

smouksassi avatar daattali avatar benjaminrich avatar wrathematics avatar sergiolucero avatar

Watchers

James Cloos avatar Kyle Baron avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.