# Monthly Archives: febrero 2016

You are browsing the site archives by month.

## The companion density plot

library(dplyr)

glimpse(faithful)

## Observations: 272
## Variables: 2
## $eruptions (dbl) 3.600, 1.800, 3.333, 2.283, 4.533, 2.883, 4.700, 3.6... ##$ waiting   (dbl) 79, 54, 74, 62, 85, 55, 88, 85, 51, 85, 54, 84, 78, ...

head(faithful)

##   eruptions waiting
## 1     3.600      79
## 2     1.800      54
## 3     3.333      74
## 4     2.283      62
## 5     4.533      85
## 6     2.883      55

## $dist (dbl) 2, 10, 4, 22, 16, 10, 18, 26, 34, 17, 28, 14, 20, 24, 28...  plot(cars)  ## The story teller line graph class(airmiles)  ## [1] "ts"  head(airmiles)  ## [1] 412 480 683 1052 1385 1418  plot(airmiles)  ## The revealing stem and leaf chart library(dplyr)  glimpse(beaver2)  ## Observations: 100 ## Variables: 4 ##$ day   (dbl) 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 307, 3...
## $time (dbl) 930, 940, 950, 1000, 1010, 1020, 1030, 1040, 1050, 1100,... ##$ temp  (dbl) 36.58, 36.73, 36.93, 37.15, 37.23, 37.24, 37.24, 36.90, ...
## $activ (dbl) 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...  stem(beaver2$temp)

##
##   The decimal point is 1 digit(s) to the left of the |
##
##   364 | 8
##   366 | 3
##   368 | 90035577899
##   370 | 0114472223445577
##   372 | 34488
##   374 | 14661156
##   376 | 03444013456666678
##   378 | 1234446691255668
##   380 | 011122344670011557899
##   382 | 4455


## The charming histogram

library(dplyr)

glimpse(faithful)

## Observations: 272
## Variables: 2
## $eruptions (dbl) 3.600, 1.800, 3.333, 2.283, 4.533, 2.883, 4.700, 3.6... ##$ waiting   (dbl) 79, 54, 74, 62, 85, 55, 88, 85, 51, 85, 54, 84, 78, ...

hist(faithful\$waiting,
xlab = "Waiting time",
main = "")


## Discrete Data Analysis with R

I’m really proud of having collaborate solving LaTeX formatting issues of this awesome book:

Discrete Data Analysis with R: Visualization and Modeling Techniques for Categorical and Count Data. Michael Friendly and David Meyer. Chapman & Hall/CRC Texts in Statistical Science
https://www.crcpress.com/Discrete-Data-Analysis-with-R-Visualization-and-Modeling-Techniques-for/Friendly-Meyer/9781498725835