Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
R Graph Essentials

You're reading from  R Graph Essentials

Product type Book
Published in Sep 2014
Publisher
ISBN-13 9781783554553
Pages 190 pages
Edition 1st Edition
Languages

Table of Contents (11) Chapters

R Graph Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Base Graphics in R – One Step at a Time 2. Advanced Functions in Base Graphics 3. Mastering the qplot Function 4. Creating Graphs with ggplot Index

Chapter 4. Creating Graphs with ggplot

In the previous chapter, you learned a variety of useful techniques to produce high-quality graphs using qplot. In this chapter, you will learn how to create graphs using ggplot, an even more powerful graphics tool than qplot. In a book of this scope, it is impossible to cover all that ggplot has to offer. Thus, here we learn only the basic methods of ggplot. After reading this chapter, you should be able to create interesting graphics using ggplot. If you wish to read further about ggplot, links to other literature are given in this chapter. The topics covered in this chapter include the following:

  • Setting up variables for plotting

  • Adding color, symbol type, size, and shape as layers

  • Controlling plotting backgrounds and margins

  • Creating line graphs, histograms, bar chats, and boxplots

  • Using attractive color schemes

By the end of this chapter, you should understand the basic principles behind the creation of graphics in ggplot, and will be able to create...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}