Amir.S
Amir.S

Reputation: 745

Error in R with highcharter library

I have a problem with this code , what is wrong with this code ?

library(highcharter)
hchart(mtcars,x=mpg,y=disp)

and the results is this :

Error: !is.null(type) is not TRUE

Upvotes: 1

Views: 577

Answers (1)

blmoore
blmoore

Reputation: 1487

The interface for this package doesn't seem very intuitive (and that error needs better handling) but try:

hchart(mtcars, "scatter", x=mpg, y=disp)

The highcharter docs for hchart show examples with code that might be useful.

Upvotes: 3

Related Questions