Skip to content
Time series analysis of transformer data - check http://demo.nanobaz.com:3838/shiny-ui for a live demo
R CSS
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.
www
.gitignore
README.md
baztools.R
config.toml.template
config.yaml.template
install_deps.R
multiple_linear_regression.R
server.R
server_get_label.R
shiny-ui.Rproj
ui.R

README.md

README

Electrical Analytics prototype user interface based on the R Shiny framework.

Required R packages:

  • "shiny"
  • "ggplot2"
  • "lubridate"
  • "ggthemes"
  • "devtools"
  • "ggTimeSeries" - Use devtools::install_github('Ather-Energy/ggTimeSeries')
  • "DT"
  • "RPostgreSQL"
  • "ggpmisc"
  • "dplyr"
  • "shinyWidgets"
  • "ggalt" - Use devtools::install_github('hrbrmstr/ggalt')
  • "dygraphs"
  • "shinyjs"
  • "RcppTOML"

How do I get set up?

  1. Install R from r-project.org.

  2. libcurl and libproj dev packages are required under ubuntu. Install if necessary.

  3. After installing R, clone this repo and install the dependencies using:

     R -f install_deps.R
    
  4. If that doesn't work, use install.packages([package_name]) to manually install the packages listed above. See the note for ggTimeSeries and ggalt.

  5. On linux, libpq-dev is required for RPostgreSQL, so (for ubuntu-like distros) run:

     sudo apt install libpq-dev
    
  6. Run the app:

  • From the interpreter use shiny::runApp('path/to/repo')
  • From the command line use R -e "shiny::runApp('path/to/repo', port=4815, launch.browser=TRUE)"

Note that database credentials are not included in the github source, for security reasons.

You can’t perform that action at this time.