I am trying to use nPlot because I wanted to add some controls to the plot. I just copy the basic example from here http://ramnathv.imtqy.com/posts/rcharts-nvd3/index.html and it does not show any plot when I run it. I use hPlot and it displays well. Do I need to install anything else? Here are two basic examples. hPlot works, nPlot does not show a chart.
library(rCharts)
h1 <- hPlot(x="wt",y="mpg",group="cyl",data=mtcars,type="scatter")
h1
library(rCharts)
p1 <- nPlot(mpg ~ wt, group = 'cyl', data = mtcars, type = 'scatterChart')
p1$xAxis(axisLabel = 'Weight (in lb)')
p1
Also, I initially tried using nPlot with the actual data that I want to build, and added a control. The control displays fine, but there is no graph. Tried with a basic example and still no plot. Thank.
source
share