Git Product home page Git Product logo

rcharts_nvd3_standalone's Introduction

nvd3 in R with rCharts

rCharts provides an interface between R and most popular interactive Javascript visualization libraries. Here are some quick examples using NVD3 to create some PerformanceAnalytics type graphics. These examples are minimal. To see a much more complete example, go to recreate NYT baseball tutorial.

To run these, the create_chart function will produce a fully rendered beautiful HTML page from an .R source file. Each of the .R source files are provided in this repo.

#using StackOverflow http://stackoverflow.com/questions/14958516/looping-through-all-files-in-directory-in-r-applying-multiple-commands

#to install rCharts if you do not have it uncomment next two lines
#require(devtools)
#install_github('rCharts', 'ramnathv')
require(rCharts)

examples = c("cumulline_edhec.R",      
             "scatter_riskreturn.R")    

#change the number in examples[i] to the example you would like to run
sapply(paste0(
  "https://raw.github.com/timelyportfolio/rCharts_nvd3_standalone/master/",
  examples),
       FUN = create_chart)

#if sapply scares you or if you want to try just one, here is another way to do it
create_chart(paste0("https://raw.github.com/timelyportfolio/rCharts_nvd3_standalone/master/",examples[1]))

rcharts_nvd3_standalone's People

Contributors

timelyportfolio avatar

Watchers

 avatar  avatar  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.