Type Problem Radar Charts in R!

Radar Charts in R
https://plot.ly/r/radar-chart/

If you run the example above link, the following error will occur.

Error: Trace type must be one of the following:
‘scatter’, ‘box’, ‘bar’, ‘heatmap’, ‘histogram’, ‘histogram2d’, ‘histogram2dcontour’, ‘pie’, ‘contour’, ‘scatterternary’, ‘sankey’ ‘scattercarpet’, ‘contourcarpet’, ‘ohlc’, ‘scatterplot’, ‘scatterplot’, ‘scatterplot’, ‘scatterclone’ ‘candlestick’, ‘area’

There seems to be an error because there is no scatterpolar type.
How do I set the type to run the example in the link above?