Skip to content Skip to navigation
University of Warwick
  • Study
  • |
  • Research
  • |
  • Business
  • |
  • Alumni
  • |
  • News
  • |
  • About
  • Text only
  • |
  • Sign in
  • Search MOAC
  • Search University of Warwick
  • Search for people at Warwick
  • Search Warwick Blogs
  • Search past exam papers
  • Search video
  • More…

    Molecular Organisation and Assembly in Cells

    • Why MOAC?
    • MOAC Research
    • MOAC People
    • MOAC Degrees
    • Study at MOAC
    • MOAC News
    • MOAC Students »
    • Peter Cock »
    • R Programming »
    • 3D Bar Charts
    • GEO SOFT files
    • Matrix Contours
    • Microarray Heatmaps
    • Network Graphs
    • R and Python
    • Scatter & Pairs Plots
    • Linear Models
    • Ramachandran Plots
    University of Warwick

    Peter's R Programming Pages

    R is a language and environment for statistical computing and graphics, available for free from The R Project. It is very similar to the S language and its commercial derivative, S-PLUS.

    I helped write an introduction to R for MOAC's CH923 Bioinformatics module.

    I've also put together my own a small collection of worked examples, where possible with sample graphics:

    [Pairs Plot]
    Scatter and pairs plots using the "Iris" data

    [Linear Models]
    Simple linear regressions and Linear Models using the "Iris" data

    [Netwrok Graph]
    Drawing network graphs of nodes and edges

    [Ramachandran Plot]
    Filled contour plots & level plots for matrix data with row and column names

    [Ramachandran Plot]
    Ramachandran Plots, using filled contour plots with an overlayed scatter plot

    [GEO microarray data]
    Loading GEO microarray data (GEO SOFT files)

    [Heatmap]
    Drawing heatmaps for microarrays

    [3D Histogram using RGL and R-Project]
    Drawing 3D bar charts and histograms with OpenGL using RGL

    [R and Python Logos]
    Combining the R and Python programming languages


    In addition to the examples above, you might be interested in:

    • Density Profiles and Contour Plots from Scatter Plots (under construction)
    • MOAC CH923 2005/06 Assignment - R/Bioconductor for microarray data analysis.

    Other Resources

    • R and BioConductor resources at Warwick
    • Beginners should print out the R Reference Card [PDF].
    • The R-FAQ (Frequently Asked Questions on R).
    • There is rather terse introduction to R online (PDF version [PDF]) with no pictures at all.
    • Have a look at this R Graph Gallery for good idea of the sort of images R can create.
    • Some people at HRI have started an e-learning introduction to R, including live online demos.
    • Another potentially interesting set of examples is Using R for psychological research.
    • Lecture notes from an MIT course on Data Mining by Tom Minka (associated code).

    P.S. If you are working with microarray data then you should really look at the Bioconductor package, a set of freely available biologically useful statistical tools.

    R and BioConductor resources at Warwick

     

    [R logo]
    The R Project

     

    [BioConductor logo]
    BioConductor

    MOAC DTC, Coventry House, University of Warwick, Gibbet Hill Road, Coventry, CV4 7AL
    Tel. 024 765 75808 moac2 at warwick dot ac dot uk

    How to find us

    MOAC Intranet

    EPSRC logo

    Close this email form
    Page contact: Peter Cock Last revised: Tue 15 May 2012
    • Sign in
    • |
    • Powered by Sitebuilder
    • |
    • © MMXIII
    • |
    • Terms
    • |
    • Privacy
    • |
    • Cookies
    • |
    • Accessibility