R Graphics

All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
 77 views
of 14

Please download to get full document.

View again

Description
1. Graphics<br />The Dataminingtools.net Team<br /> 2. R Graphics<br />Image source: www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.pdf<br /> 3.…
Share
Transcript
  • 1. Graphics<br />The Dataminingtools.net Team<br />
  • 2. R Graphics<br />Image source: www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.pdf<br />
  • 3. R Graphics<br />Image source: www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.pdf<br />
  • 4. R Graphics<br />Image source: www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.pdf<br />
  • 5. R Graphics<br />Image source: www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.pdf<br />
  • 6. R Graphics<br />Image source: www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.pdf<br />
  • 7. Types of functions<br />Functions in the graphics systems and graphics packages can be broken down into three main types: <br />high-level functions that produce complete plots; <br />Low-level functions that add further output to an existing plot; and <br />functions for working interactively with graphical output.<br />Image source: www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.pdf<br />
  • 8. Organization of R graphics<br /><ul><li>The R graphics system can be broken into four distinct levels:</li></ul>graphics packages; <br />graphics systems; <br />a graphics engine, including standard graphics devices; and<br />graphics device packages<br />Image source: www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.pdf<br />
  • 9. Plot<br />Plot is a generic function for plotting of R objects.<br />Usage:<br /><ul><li>plot(x, y, ...)</li></li></ul><li>Plot<br />&gt; plot(pressure, type=&quot;l&quot;)<br />
  • 10. Plot<br />&gt; plot(pressure, type=&quot;S&quot;)<br />
  • 11. Plot<br />Arguments to be passed to methods, such as graphical parameters (see par). Many methods will accept the following arguments:<br />typewhattype of plot should be drawn. <br />main: an overall title for the plot<br />sub: a sub title for the plot<br />xlab: a title for the x axis: <br />ylab: a title for the y axis:<br />asp: the y/x aspect ratio, <br />
  • 12. Plot<br />Possible types are:<br />&quot;p&quot; for points,<br />&quot;l&quot; for lines,<br />&quot;b&quot; for both,<br />&quot;c&quot; for the lines part alone of &quot;b&quot;,<br />&quot;o&quot; for both ‘overplotted’,<br />&quot;h&quot; for ‘histogram’ like (or ‘high-density’) vertical lines,<br />&quot;s&quot; for stair steps,<br />&quot;S&quot; for other steps,<br />&quot;n&quot; for no plotting.<br />
  • 13. Plot<br />&gt; plot(pressure, type=&quot;o&quot;, main=&quot;Pressure Vs Temperature plot&quot;)<br />
  • Related Search
    We Need Your Support
    Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

    Thanks to everyone for your continued support.

    No, Thanks