Skip to content

metagraf/rHighcharts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rHighcharts: An R wrapper for Highcharts JS

Created by Thomas Reinholdsson (reinholdsson@gmail.com).


NOTE

The functionality within this R package has been implemented into rCharts created by Ramnath Vaidyanathan. Please see rCharts for further development.


rHighcharts package is an R wrapper for the Highcharts JS, which is a JavaScript charting library based on SVG and VML rendering by Highsoft Solutions AS. Highcharts JS is not free for commercial use, so make sure you have a valid license to use it.

rHighcharts is packaged with Highcharts JS v3.0.0.

Installation

library(devtools)
install_github("rHighcharts", "metagraf")

How to use

See instructions on the following page: http://glimmer.rstudio.com/reinholdsson/rHighcharts/.

Examples

Use with Shiny

server.R

library(rHighcharts)
shinyServer(function(input, output) {
    output$chart <- renderChart({
        a <- rHighcharts:::Chart$new()
        a$title(text = "Fruits")
        a$data(x = c("Apples","Bananas","Oranges"), y = c(15, 20, 30), type = "pie", name = "Amount")
        return(a)
    })
})

ui.R

library(rHighcharts)
shinyUI(bootstrapPage(
    chartOutput("chart")
))

See also

License

rHighcharts is licensed under GPL-2. However, the Highcharts JavaScript library that is included in this package is not free for commercial use. Read more about its license at http://www.highcharts.com/license.

Releases

No releases published

Packages

No packages published

Languages