I enjoy object oriented programming. How I can turn something into an object then do things with it, apply methods and other useful things with out explicitly typing long line of code like FORTRAN.
The other day I made a coding mistake in R.
example Take a data frame called dogfood and turn it into an object.
dog <- data(dogfood)

The correct way is:
dog <- data.frame(dogfood)

Upside down Bonnie to remind me not to forget part of the code



Plots and Graphs Atributes

Plots and Graphs in R have lots of methods and arguments. Here are the basics.
argument, meaning
type,   type of plot
main, main title
sub,    subtitle

xlab,   label for x axis
ylab,    label for y axis

asp,    aspect yx ratio


parameter ,  description
col ,    color names, values, numbers, hex values

border, colour value
lwd ,   line width,value is a  number
lty ,     line type, value is a number
pch,    point symbol, value is a number
las,     style of axis labels

bg,     background fill color
cex,    magnifying ratio, number( 1 default)


Point symbol numbers are in the help file.

colors, I am amazed at the variety of color s available. Hex numbers work. RColorBrewer adds even more like palettes.

Building Interactive Graphs with ggplot2 and Shiny

Packt Publishing recently released a video called Building Interactive Graphs with ggplot2 and Shiny.
video available here bit.ly/1kEqYFZ

ggplot2 is a plotting system for R.

Shiny is web application server for R from Rstudio, Inc.

The video consists of talking slides and code demos. The site has code that can be downloaded to follow along with the video.  The code runs. Packt publishing is really good about providing code that runs without editing. The video is clear about what and where things are that need to be downloaded to run the code.

This video is good for beginners. There is enough information and links to more info to keep you from getting lost and puzzled.

I learned more about how to use ggplot2. I have a better understanding about code elements like Aesthetics.

I have now set up a Shiny web server. The video has plenty of suggestions on how to go about hosting and sharing your shiny app.

This video has given me lots of ideas of pretty graphs and plots to develop.


I gave a talk on graph theory using R.
One library that I used was Rgraphviz. It is available from bioconductor.


vinsonVinson who helps me code.

Examples from my talk.

in graph library
undirected random graph
V nodes
M values
p probability
example code
V M g1 g1 renderGraph(g1)

Books That I used In My Data Science Talk

This a is a list of books most of which I have previously reviewed.

bonnieBonnie who guards the books.

Algorithms, Robert Sedwick, Kevin Wayne 2011
The Black Belt Memory Jogger, Six Sigma Academy 2002
Six Sigma with R, E. Cano, J. Moguerza, A. Redchuk 2012
Graphical Models with R, S. Hojsgaard
The Cartoon Guide to Statistics, L. Gonick & W. Smith
R for Business Analytics, A Ohri
The Art of R Programming, N Matloff
The Elements of Statistical Learning, T. Hastie, R. Tibshirani, J. Friedman