Skip to main content

Getting started with qplot

  • Chapter
  • First Online:
ggplot2

Part of the book series: Use R ((USE R))

In this chapter, you will learn to make a wide variety of plots with your first ggplot2 function, qplot(), short for quick plot. qplot makes it easy to produce complex plots, often requiring several lines of code using other plotting systems, in one line. qplot() can do this because it’s based on the grammar of graphics, which allows you to create a simple, yet expressive, description of the plot. In later chapters you’ll learn to use all of the expressive power of the grammar, but here we’ll start simple so you can work your way up. You will also start to learn some of the ggplot2 terminology that will be used throughout the book.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Hadley Wickham .

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Springer-Verlag New York

About this chapter

Cite this chapter

Wickham, H. (2009). Getting started with qplot. In: ggplot2. Use R. Springer, New York, NY. https://doi.org/10.1007/978-0-387-98141-3_2

Download citation

Publish with us

Policies and ethics