Book Image

R Graphs Cookbook

By : Hrishi V. Mittal
Book Image

R Graphs Cookbook

By: Hrishi V. Mittal

Overview of this book

<p>With more than two million users worldwide, R is one of the most popular open source projects. It is a free and robust statistical programming environment with very powerful graphical capabilities. Analyzing and visualizing data with R is a necessary skill for anyone doing any kind of statistical analysis, and this book will help you do just that in the easiest and most efficient way possible.</p> <p>Unlike other books on R, this book takes a practical, hands-on approach and you dive straight into creating graphs in R right from the very first page.</p> <p>You want to harness the power of this open source programming language to visually present and analyze your data in the best way possible – and this book will show you how.</p> <p>The <em>R Graph Cookbook</em> takes a practical approach to teaching how to create effective and useful graphs using R. This practical guide begins by teaching you how to make basic graphs in R and progresses through subsequent dedicated chapters about each graph type in depth. It will demystify a lot of difficult and confusing R functions and parameters and enable you to construct and modify data graphics to suit your analysis, presentation, and publication needs.</p> <p>You will learn all about making graphics such as scatter plots, line graphs, bar charts, pie charts, dot plots, heat maps, histograms and box plots. In addition, there are detailed recipes on making various combinations and advanced versions of these graphs. Dedicated chapters on polishing and finalizing graphs will enable you to produce professional-quality graphs for presentation and publication. With R Graph Cookbook in hand, making graphs in R has never been easier.</p>
Table of Contents (16 chapters)
R Graphs Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Introduction


In this chapter, we will take a more in-depth look at visualizing data on geographical maps, building on top of our brief introduction in Chapter 1.

Overlaying datasets from different parts of the world on maps is a very good way of summarizing data in its correct geographical context. A lot of data is being made freely available. For example, the World Bank and World Health Organization (WHO) publish lots of socio-economic and health-related data, which can be plotted on maps. Google Maps provides a good API, which can be directly connected to from R as we will see in this chapter.

We will also learn how to work with Geographical Information Systems (GIS) data formats in R.

As with the previous chapters, it is best to try out each recipe first with the example shown here and then with your own datasets so that you can fully understand each line of code.