This document provides examples of creating various types of charts and plots using the rCharts package in R. It includes examples of creating point, bar, pie, line, stacked area, multi-bar, box, tile and map charts from different datasets. The rCharts package allows interactive charts to be created that can be embedded within R Markdown or Shiny applications.
Some Examples in R- [Data Visualization--R graphics]
1. Some Examples in R- [Data Visualization--R graphics]
and others..
library(rpart.plot),library(rCharts),library(plyr),library(knitr),
library(reshape2),library(scales)
Reference:
https://github.com/ramnathv/rCharts/tree/master/inst/libraries
http://www.rpubs.com/dnchari/rcharts
rCharts package by Ramnath Vaidyanathan
Prepared by Volkan OBAN
6. Example6:
dat <- data.frame(
t = rep(0:23, each= 4),
var = rep(LETTERS[1:4],4),
val = round(runif(4*24,0,50)) )
p<- nPlot(val ~t,group = 'var', data = dat, type = 'stackedAreaChart',id='chart' )
p