Previous: Drawing Plots Up: Graphing Commands Next: Saving Graphs to Files


Adding Points, Lines, and Legends to Existing Plots

Once you have created a plot, you can add points, lines, text, or a legend. To place each of these elements, R uses coordinates defined in terms of the x-axes and y-axes of the plot area, not coordinates defined in terms of the the plotting window or device. For example, if your plot has an x-axis with values between 33#33 , and a y-axis with values between 34#34 , you may add a point at 35#35 .



Gary King 2011-11-29