Highcharter is an R wrapper for Highcharts’ JavaScript library and its modules. Highcharts is very mature and flexible on JavaScript’s charting library. It has a great and powerful API.
Before proceeding, please follow our short tutorial.
Look at the examples given and try to understand the logic behind them. Then, try to solve the exercises below using R without looking at the answers. Then check the solutions to check your answers.
Exercise 1
Load the mpg
data-set and create a basic scatter plot between variables of your choice.
Exercise 2
Group the scatter plot you just created by class.
Exercise 3
Use highchart()
to create a basic column chart of your choice.
Exercise 4
Add a title to the chart of exercise 3.
Exercise 5
Name the bars of your column chart as years and replace “Series 1” with “Sales.”
- Work extensively with the ggplot package and its functionality
- Learn what visualizations exist for your specific use case
- And much more
Exercise 6
Load the diamonds
data set, create a basic column chart, and color it by cut.
Exercise 7
Create a column chart of the price with the color of your choice.
Exercise 8
Use forecast()
on AirPassengers
data-set in combination with hchart()
.
Exercise 9
Create a chloropleth map of the unemployemnt
data-set with a colorAxis()
.
Exercise 10
Change the parameters of the legend with parameters of your choice.
There’s a typo in your link, with “hot” instead of “how. The actual page is “https://www.r-exercises.com/2018/04/02/hot-to-visualize-data-with-highcharter/” but you are linking to “https://www.r-exercises.com/2018/04/02/how-to-visualize-data-with-highcharter/”.