Graphics Programs Reference
In-Depth Information
Now explicitly specify that you want the point type, and set the range of the
vertical axis from 0 to 30,000.
plot(subscribers$Subscribers, type=āpā, ylim=c(0, 30000))
Figure 4-27 is same thing as Figure 4-26, but with a wider vertical axis as
you specified with the
ylim
argument. Notice you use the type argument to
tell R to use points. If you changed type to
h
, R would make high-density
vertical lines.
FIGurE 4-26
Default plot in R
FIGurE 4-27
Point plot in R with y-limits specified
Search WWH ::
Custom Search