Code Monkey home page Code Monkey logo

rmarkdown_jsviz's Introduction

R markdown with JavaScript visualization libraries

This is a short tutorial on knitr/markdown and JS visualization libraries googleVis and rCharts. With these packages you can create web pages with interactive visualizations from R. This will require minimal or no knowledge of HTML or JavaScript.

You need to have the following R packages and their dependencies installed:

  • knitr
  • googleVis
  • rCharts (not on CRAN)

The tutorial is organized in four parts. First two parts introduce basics about knitr and markdown. The last parts are about using googleVis and rCharts packages in markdown documents. You can download the .Rmd files and run knit2html() on them, or if you are using RStudio you can click "knit HTML" button on the upper left corner.

1. R and markdown

markdown_knitr.Rmd shows basics of markdown and knitr integration. These tools will help you create an HTML document using R. The output is here. In addition, R markdown basics are described here.

2. Customizing code output in markdown documents

controlling_knitr.Rmd shows how code chunk output can be controlled by knitr options. The output is here

3. Using Google visualization API in markdown documents

googleVis.Rmd shows how to use googleVis package in a markdown document.You can incorporate plots from Google Visualization API. The output is here

4. Using multiple JS visualization libraries in markdown documents

rCharts.Rmd shows how to use rCharts package in a markdown document. Using rCharts, you can incorporate various JS visualizations on your HTML document. The output is here.

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.