Difference between revisions of "HowTo/GettingStarted"

From Comparative Phylogenetics in R
Jump to: navigation, search
(Comparative Methods in R How To)
Line 5: Line 5:
 
R is freely available statistical software, which can be run in various environments (MacOSX, Windows, Linux).  For a general description of R, visit its [http://www.r-project.org/about.html/ its introductory page]. To download R, go to [http://www.r-project.org/ its homepage] and select one of the [http://cran.r-project.org/mirrors.html CRAN mirrors].  Most users will want to choose a precompiled binary distributions for their system (Mac, Windows, Linux).  For PC users, select the "base" subdirectory and download and run the setup program (.exe file).  MAC users will download the .dmg file and double-click the icon to install the program.
 
R is freely available statistical software, which can be run in various environments (MacOSX, Windows, Linux).  For a general description of R, visit its [http://www.r-project.org/about.html/ its introductory page]. To download R, go to [http://www.r-project.org/ its homepage] and select one of the [http://cran.r-project.org/mirrors.html CRAN mirrors].  Most users will want to choose a precompiled binary distributions for their system (Mac, Windows, Linux).  For PC users, select the "base" subdirectory and download and run the setup program (.exe file).  MAC users will download the .dmg file and double-click the icon to install the program.
  
In order to run comparative analyses in R, the user will need to download one or more additional [http://cran.r-project.org/src/contrib/PACKAGES.html packages]. To install R packages, open R (by double-clicking the desktop icon, via the start menu for PC users, or within the applications folder for Mac users).  The first window users will see is the R Console.  Mac users can download packages via the Package Installer in the Packages & Data menu.  PC users can download packages by selecting install packages from the Packages menu.  Packages can also be downloaded by using the command line. At the prompt >, type install.packages("ape") to install [http://cran.r-project.org/src/contrib/Descriptions/ape.html ape].  There are a large number of packages for phylogenetic and comparative analyses; a useful comparison of these packages and their functions has been compiled by Brian O'Meara (available [http://www.brianomeara.info/allpackages3.html here]).
+
In order to run comparative analyses in R, the user will need to download one or more additional [http://cran.r-project.org/src/contrib/PACKAGES.html packages]. To install R packages, open R (by double-clicking the desktop icon, via the start menu for PC users, or within the applications folder for Mac users).  The first window users will see is the R Console.  Mac users can download packages via the Package Installer in the Packages & Data menu.  PC users can download packages by selecting install packages from the Packages menu.  Packages can also be downloaded by using the command line. To install [http://cran.r-project.org/src/contrib/Descriptions/ape.html ape], type at the command prompt > :
  
These packages must be loaded at the beginning of each session in R.  To load a package, type library("ape") at the command prompt.  Basic information about the package can obtained by typing help.search("ape").
+
      install.packages("ape")
  
 +
There are a large number of packages for phylogenetic and comparative analyses; a useful comparison of these packages and their functions has been compiled by Brian O'Meara (available [http://www.brianomeara.info/allpackages3.html here]).
  
'''Basics'''
+
These packages must be loaded at the beginning of each session in R.  To load a package, type library("ape") at the command prompt. Basic information about the package can obtained by typing help.search("ape").
* How to load a tree
 
* How to load a dataset
 
* How to....
 
 
 
  
'''Methods'''
 
* How to calculate Independent Contrasts
 
* How to calculate Ancestral State Reconstructions
 
* How to calculate measures of phylogenetic patterning
 
* How to.....
 
  
'''Tree & Data Manipulation'''
+
[[Category:HowTo]]
* How to run analysis across multiple trees
 
* How to subset trees and data
 
* How to resolve polytomies
 
* How to change branch lengths
 
* How to .....
 

Revision as of 12:11, 11 December 2007

Comparative Methods in R How To

Getting started with R:

R is freely available statistical software, which can be run in various environments (MacOSX, Windows, Linux). For a general description of R, visit its its introductory page. To download R, go to its homepage and select one of the CRAN mirrors. Most users will want to choose a precompiled binary distributions for their system (Mac, Windows, Linux). For PC users, select the "base" subdirectory and download and run the setup program (.exe file). MAC users will download the .dmg file and double-click the icon to install the program.

In order to run comparative analyses in R, the user will need to download one or more additional packages. To install R packages, open R (by double-clicking the desktop icon, via the start menu for PC users, or within the applications folder for Mac users). The first window users will see is the R Console. Mac users can download packages via the Package Installer in the Packages & Data menu. PC users can download packages by selecting install packages from the Packages menu. Packages can also be downloaded by using the command line. To install ape, type at the command prompt > :

     install.packages("ape")

There are a large number of packages for phylogenetic and comparative analyses; a useful comparison of these packages and their functions has been compiled by Brian O'Meara (available here).

These packages must be loaded at the beginning of each session in R. To load a package, type library("ape") at the command prompt. Basic information about the package can obtained by typing help.search("ape").