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
ggplot(BOD, aes(x
=
Time, y
=
demand))
+
geom_line()
+
geom_point()