Skip to Content
R Programming By Example
book

R Programming By Example

by Omar Trejo Navarro
December 2017
Beginner to intermediate
470 pages
12h 29m
English
Packt Publishing
Content preview from R Programming By Example

High-tech-looking interactive globe

To finish this chapter, we will build an interactive high-tech-looking globe you can move around and show off to your friends. These types of visualizations are normally not very useful for analysis, but they are cool!

Our objective is to show a globe that will show geographical data coming from clients' messages as well as bars whose height represents the PROFIT associated to each sale and colors for PROTEIN_SOURCE. To accomplish this, we will use the threejs package.

As we did earlier, our graph_client_message_in_globe() function receives the client_messages and sales data and sets it up using the setup_globe_data() function. Then it will get world data using the get_world_map_data() function and append ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Efficient R Programming

Efficient R Programming

Colin Gillespie, Robin Lovelace
R Programming

R Programming

Jared P. Lander

Publisher Resources

ISBN: 9781788292542Supplemental Content