You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However could not run that at all. Below is the situation what happened:
library(rCharts)
Prepare data
x <- data.frame(USPersonalExpenditure)
colnames(x) <- substr(colnames(x), 2, 5)
Create chart
a <- rCharts:::Highchart$new()
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'Highchart' not found
Next I tried with this:
a <- rCharts:::Highcharts$new()
However now I got following error:
a$chart(type = "column")
a$title(text = "US Personal Expenditure")
a$xAxis(categories = rownames(x))
a$yAxis(title = list(text = "Billions of dollars"))
a$data(x)
Print chart
a$printChart()
Error in envRefInferField(x, what, getClass(class(x)), selfEnv) :
‘printChart’ is not a valid field or method name for reference class “Highcharts”
I would really appreciate if someone points me how to run them correctly.
I also want Horizontal plot, not Vertical plot as given in that example. Can someone tell me about the adjustment, if any?
Thanks and regards,
The text was updated successfully, but these errors were encountered:
The chart you see was made with a really old version of rCharts. We have made lot of changes to the API since then. The answers by @tinu-schneider should help you correct your code.
Hi all,
I was trying to replicate the example given here: http://rstudio-pubs-static.s3.amazonaws.com/5548_c3b680696b084e5db17eecf8c079a3c1.html
However could not run that at all. Below is the situation what happened:
Next I tried with this:
a <- rCharts:::Highcharts$new()
However now I got following error:
I would really appreciate if someone points me how to run them correctly.
I also want Horizontal plot, not Vertical plot as given in that example. Can someone tell me about the adjustment, if any?
Thanks and regards,
The text was updated successfully, but these errors were encountered: