Book Image

R Data Science Essentials

Book Image

R Data Science Essentials

Overview of this book

With organizations increasingly embedding data science across their enterprise and with management becoming more data-driven it is an urgent requirement for analysts and managers to understand the key concept of data science. The data science concepts discussed in this book will help you make key decisions and solve the complex problems you will inevitably face in this new world. R Data Science Essentials will introduce you to various important concepts in the field of data science using R. We start by reading data from multiple sources, then move on to processing the data, extracting hidden patterns, building predictive and forecasting models, building a recommendation engine, and communicating to the user through stunning visualizations and dashboards. By the end of this book, you will have an understanding of some very important techniques in data science, be able to implement them using R, understand and interpret the outcomes, and know how they helps businesses make a decision.
Table of Contents (15 chapters)
R Data Science Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Creating an interactive dashboard using Shiny


Shiny is a web application framework for R. We can create an interactive dashboard using Shiny. We will see the implementation of a sample dashboard using R and Shiny in detail.

In order to create interactive dashboards using Shiny from R, we need to install and load the shiny package in R:

install.packages("shiny")
library(shiny)

After installing and loading the shiny package in R, you can check the \win-library\3.2\shiny\examples path in the R folder where the folders and files related to the packages are saved. The R folder would mostly be present in the program files; if R doesn't have the administrative privilege to write to the program files, it would be present in the Documents folder or any other custom folder specified during the installation or first-package installation.

In the examples folder, you can see various sample apps that have been developed. We can create a new folder and start the development of a new application. Alternatively...