Giter VIP home page Giter VIP logo

lite's Introduction

iNZight Lite

Last Updated: 04/12/19

This is the online version of iNZight (http://lite.docker.stat.auckland.ac.nz)

To run locally:

iNZight Lite is a shiny app, so you can run it locally if you have R installed. If you use RStudio, see instructions further down.

  1. Download and unzip or clone this repository

    Note: if you use Git to clone the repository, you can easily keep Lite updated via git pull

  2. Open R and set the working directory to the Lite folder

setwd("/path/to/Lite")
  1. Install the devtools R package (if you don't already have it):
install.packages("devtools")
  1. Install package dependencies (NOTE: we host iNZight packages on our own server, see below)
devtools::install_deps(repos = c("http://r.docker.stat.auckland.ac.nz/R", 
                                 "https://cloud.r-project.org/"))
  1. Run the iNZight Lite app!
shiny::runApp()

RStudio users:

  1. If you have git installed: in RStudio > File > New Project > Version Control > Git

    • For the URL, enter: https://github.com/iNZightVIT/Lite.git
    • And choose a location to save the app
    • Then Create Project

    If you don't have git:

    • Download and unzip the app
    • In the folder, double click Lite.rproj to open the project in RStudio
  2. To install the dependencies, enter the following into the Console:

install.packages("devtools")  ## skip if you know you already have devtools
devtools::install_deps(repos = c("http://r.docker.stat.auckland.ac.nz/R", 
                                 "https://cloud.r-project.org/"))
  1. To run iNZight Lite, open the ui.R file and click the Run App button at the top.

Send bug reports/errors to [email protected].

Recent Updates (Most to least recent):

  • [visualize] Add various new plot types
  • [R code history] now, we have code history for ggplot, Import dataset, Example dataset, and all the panels under manipulate variables

Package dependencies

This are all the packages which are loaded by iNZight lite. Please install all dependencies.

  • iNZightPlots
  • iNZightTS
  • iNZightMR
  • markdown
  • GGally
  • gpairs
  • iNZightRegression
  • RJSONIO
  • survey
  • shinyWidgets
  • iNZightTools
  • shinycssloaders

Directories:

  • data: This directory holds all the data. The data must be placed in sub-directories, which will come up as data categories within iNZight-Lite.

  • gui-elements: (removed) This directory contains the gui functions for all the old modules (from iNZight revamp).

  • www: This directory is used for graphics and/or web-related files such as .css and .gif/.jpeg/.png javascript files. Images are stored in a sub-directory called "images". Javascript code is stored in a subdirectory "js".

  • panels: This directory contains the gui, server, help, and other functions for each module.

Main files:

  • README: Documentation for iNZight Lite. Update as required.

  • global.R: Defines functions and variables that are used globally. For now, all non-GUI functions are stored here.

  • server.R: Script for shiny server.

  • ui.R: Defines the main GUI.

  • functions.R Defines al functions used in iNZight-lite, some of them are also in iNZightTools.

  • data: This directory holds all the data. The data must be placed in sub-directories, which will come up as data categories within iNZight Lite.

  • www: This directory is used for graphics and/or web-related files such as .css and .gif/.jpeg/.png. Images are stored in a sub-directory called "images".

  • panels: This directory contains the gui, server, help, and other functions for each module. The directory/file names will be of the form:

    • [Directory] N_(sub-)panel-name
    • [File] 1_panelname-panel-gui.R
    • [File] 2_panelname-panel-server.R
    • [File] 3_panelname-panel-help.R
    • [File] 4_panelname-panel-null.R
    • [File] 5_panelname-panel-other.R

iNZight-lite URL feature

Some GET parameters can be added to the URL to access iNZight-lite. In the moment the following are implemented.

  • url: An URL to a dataset sitting somewhere in the internet.
  • example: A name of an data set inside the data folder.
  • land: The place where iNZight-lite starts. If not specified it is "About". Three possibilities (visualize, timeSeries, regression).
  • x: The x variable in the visualize module
  • y: The y variable in the visualize module
  • time: The variable in time series where the dates are stored. -seriesVars A comma seperated list of column names. This names are set in time series to be plotted
  • Y: The dependend variable in regression.
  • predict: Comma seperated list with predictor variables.
  • confound: Comma seperated list for confounding variables.

lite's People

Contributors

wilsonhsw avatar chrisparknz avatar t0ngchen avatar christophknapp avatar tmelliott avatar chriswild avatar sharko666 avatar

Watchers

James Cloos 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.