Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
statistics:longitudinal-data [2011/06/07 2:20 pm PDT]
John Colby
statistics:longitudinal-data [2011/06/07 2:36 pm PDT] (current)
John Colby [Notes]
Line 39: Line 39:
   * **Editing**:​ If you need to change some aspect of a base graphics plot, the entire code used to generate the plot needs to be entered again. With ggplot2, this is easy to do by just updating the plot object and redrawing.   * **Editing**:​ If you need to change some aspect of a base graphics plot, the entire code used to generate the plot needs to be entered again. With ggplot2, this is easy to do by just updating the plot object and redrawing.
   * **Portability**:​ Similarly, it is easy with ggplot2 to swap out variables assigned to different aspects of the plot, or to run the same //visual program// on an entirely new set of data.   * **Portability**:​ Similarly, it is easy with ggplot2 to swap out variables assigned to different aspects of the plot, or to run the same //visual program// on an entirely new set of data.
-  * **Facets**: This is the nicest feature of ggplot2 in my opinion. If you want to make subplots for different groupings in the results (ex: by gender), all you have to do is specify one or two facet variables. In base, all the steps of subsetting the data and plotting would have to be performed manually for each subplot. Now imagine if you had 2 factor variables with 6 levels each. ggplot2 would take care of generating 36 subplots (plus custom annotations) for the different combinations of these levelsall without modifying the script!+  * **Facets**: This is the nicest feature of ggplot2 in my opinion. If you want to make subplots for different groupings in the results (ex: by gender), all you have to do is specify one or two facet variables. In base, all the steps of subsetting the data and plotting would have to be performed manually for each subplot. Now imagine if you had 2 factor variables with 6 levels each. ggplot2 would take care of generating 36 subplots (plus custom annotations) for the different combinations of these levels ​all without modifying the script!
  
 ====== Code ====== ====== Code ======
statistics/longitudinal-data.txt ยท Last modified: 2011/06/07 2:36 pm PDT by John Colby
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki