12.07.2015 Views

R dummies

R dummies

R dummies

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 16-6: Adding main title, x-axis label, and y-axis label.Working with axes and legendsR allows you to also take control of other elements of a plot, such as axes,legends, and text:Axes: If you need to take full control of plot axes, use axis(). Thisfunction allows you to specify tickmark positions, labels, fonts, line types,and a variety of other options.Legends: You can use the legend() function to add legends, or keys, toplots.Text: In addition to legends, you can use the text() function to addtext elements at any position on the plot.The Help pages of the respective functions give you more information, andthe examples contained in the Help pages show you how much you can dowith these functions.Figure 16-7: Changing the label style.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!