Graphics Reference
In-Depth Information
Chapter6.Summarized
Data
Distributions
This chapter explores how to visualize summarized distributions of data.
Making a Basic Histogram
Problem
You want to make a histogram.
Solution
Use geom_histogram() and map a continuous variable to x ( Figure 6-1 ):
ggplot(faithful, aes(x = waiting)) + geom_histogram()
Search WWH ::




Custom Search