Skip to main content

Posts

Showing posts from November, 2015

R basic graphs

We look at some of the ways R can display information graphically. This is a basic introduction to some of the basic plotting commands. It is assumed that you know how to enter data or read data files which is covered in the first chapter, and it is assumed that you are familiar with the different data types.       In each of the topics that follow it is assumed that two different data sets,   w1.dat   and   trees91.csv   have been read and defined using the same variables as in the first chapter. Both of these data sets come from the study discussed on the web site given in the first chapter. We assume that they are read using “read.csv” into variables   w1   and   tree : >   w1  <-  read.csv ( file = "w1.dat" , sep = "," , head = TRUE ) >  names ( w1 ) [1] "vals" >   tree  <-  read.csv ( file = "trees91.csv" , sep = "," , head = TRUE ) >  names...