Graphics Reference
In-Depth Information
Figure 4-3. Line graph with manually set y range
See Also
See Setting the Range of a Continuous Axis for more on controlling the range of the axes.
Adding Points to a Line Graph
Problem
You want to add points to a line graph.
Solution
Add geom_point() ( Figure 4-4 ):
ggplot(BOD, aes(x = Time, y = demand)) + geom_line() + geom_point()
Search WWH ::




Custom Search