<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/how-to-visualize-data-with-highcharter-exercises/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://www.r-exercises.com/2018/04/09/how-to-visualize-data-with-highcharter-exercises/"> R-exercises</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><a rel="nofollow" href="https://i1.wp.com/www.r-exercises.com/wp-content/uploads/2018/04/NQRdC.png?ssl=1" target="_blank"><img sizes="(max-width: 150px) 100vw, 150px" src="https://i2.wp.com/www.r-exercises.com/wp-content/uploads/2018/04/NQRdC-150x150.png?resize=150%2C150&ssl=1" alt="" width="150" class="wp-image-11187" data-recalc-dims="1" height="150"></a><strong>INTRODUCTION</strong></p>
<p>Highcharter is a R wrapper for Highcharts javascript libray and its modules. Highcharts is very mature and flexible javascript charting library and it has a great and powerful API.</p>
<p>Before proceeding, please follow our short <a rel="nofollow" href="http://r-exercises.com/2018/04/02/how-to-visualize-data-with-highcharter/" target="_blank">tutorial.</a></p>
<p>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 <a rel="nofollow" href="http://r-exercises.com/2018/04/09/highcharter-exercises-solutions" target="_blank">solutions</a> to check your answers.</p>
<p><strong>Exercise 1</strong></p>
<p>Load the <code>mpg</code> dataset and create a basic scatterplot between variables of your choice.</p>
<p><strong>Exercise 2</strong></p>
<p>Group the scatterplot you just created by “class”.</p>
<p><strong>Exercise 3</strong></p>
<p>Use <code>highchart()</code> to create a basic column chart of your choice.</p>
<p><strong>Exercise 4</strong></p>
<p>Add title to the chart of exercise 3.</p>
<p><strong>Exercise 5</strong></p>
<p>Name the bars of your columnchart as years and replace “Series 1” with “Sales”.</p>
<div>
<aside><img src="https://www.r-exercises.com/2018/04/09/how-to-visualize-data-with-highcharter-exercises/"></aside>
<div><strong>Learn more</strong> about using different visualization packages in the online course <a rel="nofollow" href="http://www.r-exercises.com/product/r-complete-data-visualization-solutions/" target="_blank">R: Complete Data Visualization Solutions</a>. In this course, you will learn how to:
<ul>
<li>Work extensively with the ggplot package and its functionality</li>
<li>Learn what visualizations exist for your specific use case</li>
<li>And much more</li>
</ul>
</div>
</div>
<p><strong>Exercise 6</strong></p>
<p>Load the <code>diamonds</code> dataset, create a basic column chart and color it by “cut”.</p>
<p><strong>Exercise 7</strong></p>
<p>Create a columnchart of the “price” with color of your choice.</p>
<p><strong>Exercise 8</strong></p>
<p>Use <code>forecast()</code> on <code>AirPassengers</code> dataset in combination with <code>hchart()</code>.</p>
<p><strong>Exercise 9</strong></p>
<p>Create a chloropleth map of the <code>unemployemnt</code> dataset with a <code>colorAxis()</code>.</p>
<p><strong>Exercise 10</strong></p>
<p>Change the parameters of the legend with parameters of your choice.</p>
<div>
<h3>Related exercise sets:</h3>
<ol>
<li><a rel="nofollow" href="https://www.r-exercises.com/2017/06/11/data-visualization-with-googlevis-exercises-part-2/" title="Data Visualization with googleVis exercises part 2" target="_blank">Data Visualization with googleVis exercises part 2 </a></li>
<li><a rel="nofollow" href="https://www.r-exercises.com/2017/08/12/ggvis-exercises-part-1/" title="ggvis Exercises (Part-1)" target="_blank">ggvis Exercises (Part-1) </a></li>
<li><a rel="nofollow" href="https://www.r-exercises.com/2017/08/06/data-visualization-with-googlevis-exercises-part-10/" title="Data visualization with googleVis exercises part 10" target="_blank">Data visualization with googleVis exercises part 10 </a></li>
<li><a rel="nofollow" href="http://www.r-exercises.com/start-here-to-learn-r/" target="_blank">Explore all our (>1000) R exercises</a></li>
<li><a rel="nofollow" href="http://www.r-exercises.com/r-courses/" target="_blank">Find an R course using our R Course Finder</a> directory</li>
</ol>
</div>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://www.r-exercises.com/2018/04/09/how-to-visualize-data-with-highcharter-exercises/"> R-exercises</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/wT-wszfICjo" height="1"></a></div>