r - Can we use rcharts to plot Grouped_Categories charts from Highcharts? -
i appreciate rcharts package being created many cool stuff, lot. besides, interested use r plot grouped_categories charts (highcharts) blacklabel (refer link below).
https://github.com/blacklabel/grouped_categories
example of grouped_categories in json format:
xaxis: { categories: [{ name: "fruit", categories: ["apple", "banana", "orange"] }, { name: "vegetable", categories: ["carrot", "potato", "tomato"] }, { name: "fish", categories: ["cod", "salmon", "tuna"] }] }
can let me know rcharts package able so? if yes, can show me simple example r code grouped_categories chart reference?
appreciate , thanks
hi yes can rcharts
, use addassets
include grouped_categories js lib.
library("rcharts") h1 <- highcharts$new() h1$chart( type = "column" ) h1$series( list( list( data = list(4, 14, 18, 5, 6, 5, 14, 15, 18) ) ) ) h1$xaxis( categories = list( list( name = "fruit", categories = list("apple", "banana", "orange") ), list( name = "vegetable", categories = list("carrot", "potato", "tomato") ), list( name = "fish", categories = list("cod", "salmon", "tuna") ) ) ) h1$addassets(js = "https://raw.githubusercontent.com/blacklabel/grouped_categories/master/grouped-categories.js") h1
et voilĂ
Comments
Post a Comment