Advanced Graphics<br />The Dataminingtools.net Team<br />
Trellis Graphics:the lattice package<br />Trellis plots are designed to be easy to interpret and at the same time provide ...
Lattice Package<br />&gt; xyplot(lat ~ long, data=quakes, pch=“+&quot;)<br />Image source: www.stat.auckland.ac.nz/~paul/R...
Lattice Package<br />&gt; tplot&lt;-xyplot(lat ~ long, data=quakes, pch=&quot;X&quot;)<br />&gt; tplot2 &lt;- update(tplot...
Lattice functions<br />Image Source: http://www.stat.auckland.ac.nz/~paul/RGraphics/RGraphicsChapters-1-4-5.pdf<br />Image...
3-d Plots using cloud()<br />&gt; cloud(depth ~ lat*long, data=quakes, pch=&quot;+&quot;)<br />Image source: www.stat.auck...
3-d Plots using cloud()<br />One of the very powerful features of Trellis Graphics is the ability to specify conditioning ...
Upcoming SlideShare
Loading in …5
×

Advanced R Graphics

632 views

Published on

Advanced R Graphics

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
632
On SlideShare
0
From Embeds
0
Number of Embeds
80
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Advanced R Graphics

  1. 1. Advanced Graphics<br />The Dataminingtools.net Team<br />
  2. 2. Trellis Graphics:the lattice package<br />Trellis plots are designed to be easy to interpret and at the same time provide some modern and sophisticated plotting styles, such as multi-panel conditioning.<br />Image source: www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.pdf<br />
  3. 3. Lattice Package<br />&gt; xyplot(lat ~ long, data=quakes, pch=“+&quot;)<br />Image source: www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.pdf<br />
  4. 4. Lattice Package<br />&gt; tplot&lt;-xyplot(lat ~ long, data=quakes, pch=&quot;X&quot;)<br />&gt; tplot2 &lt;- update(tplot, main=&quot;Earthquakes in the pacific ocean&quot;)<br />&gt; print(tplot2)<br />Image source: www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.pdf<br />
  5. 5. Lattice functions<br />Image Source: http://www.stat.auckland.ac.nz/~paul/RGraphics/RGraphicsChapters-1-4-5.pdf<br />Image source: www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.pdf<br />
  6. 6. 3-d Plots using cloud()<br />&gt; cloud(depth ~ lat*long, data=quakes, pch=&quot;+&quot;)<br />Image source: www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.pdf<br />
  7. 7. 3-d Plots using cloud()<br />One of the very powerful features of Trellis Graphics is the ability to specify conditioning variables within the formula argument. Something of the form y ~ x | g indicates that several plots should be generated, showing the variable y against the variable x for each level of the variable g.<br />Image source: www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.pdf<br />

×