Mahbubul Majumder
Nov 13, 2014
For more details on authoring R presentations click the Help button on the toolbar.
-
sign
summary(cars)
speed dist
Min. : 4.0 Min. : 2.00
1st Qu.:12.0 1st Qu.: 26.00
Median :15.0 Median : 36.00
Mean :15.4 Mean : 42.98
3rd Qu.:19.0 3rd Qu.: 56.00
Max. :25.0 Max. :120.00
python
command. Notice how we changed the engine to python
print "Hellow R"
Hellow R
Linux
command. Notice how we changed the engine to bash
pwd
/Users/mmajumder/Box Sync/myweb/data-science/fall-2014/lectures/21-datascience-lab
C
, awk
etc.First column has a plot but no R code
Notice the first column is wider since left is set to be 70%
head(women)
height weight
1 58 115
2 59 117
3 60 120
4 61 123
5 62 126
6 63 129
library(knitr)
kable(head(mtcars), format="html")
mpg | cyl | disp | hp | drat | wt | qsec | vs | am | gear | carb | |
---|---|---|---|---|---|---|---|---|---|---|---|
Mazda RX4 | 21.0 | 6 | 160 | 110 | 3.90 | 2.620 | 16.46 | 0 | 1 | 4 | 4 |
Mazda RX4 Wag | 21.0 | 6 | 160 | 110 | 3.90 | 2.875 | 17.02 | 0 | 1 | 4 | 4 |
Datsun 710 | 22.8 | 4 | 108 | 93 | 3.85 | 2.320 | 18.61 | 1 | 1 | 4 | 1 |
Hornet 4 Drive | 21.4 | 6 | 258 | 110 | 3.08 | 3.215 | 19.44 | 1 | 0 | 3 | 1 |
Hornet Sportabout | 18.7 | 8 | 360 | 175 | 3.15 | 3.440 | 17.02 | 0 | 0 | 3 | 2 |
Valiant | 18.1 | 6 | 225 | 105 | 2.76 | 3.460 | 20.22 | 1 | 0 | 3 | 1 |
package | functions |
---|---|
base | sample, union, intersect, rbind, unique, merge |
plyr | mutate, transmute |
reshape2 | melt, dcast |
plyrmr | bind.cols, transmute, select, where, count.cols, quantile.cols, top.k, bottom.k |
The normal distribution can be written as
\[ f(x)=\frac1{\sqrt{2\pi \sigma^2}} e^{-\frac1{2\sigma^2} (x-\mu)^2} \]
Symbolically we write \[ X \sim N(\mu, \sigma^2) \]
This is a paragraph. It contains some plain text. The color, font-size and font-family of the texts are changed using CSS style. To check the HTML codes and tags used for this you may need to review the source codes of this presentation.
More
, you will find the following options to save the presentation as HTML document.Github repository for this presentation
https://github.com/mamajumder/html-presentation
Authoring R presentation
https://support.rstudio.com/hc/en-us/articles/200486468
For markdown documentation
http://daringfireball.net/projects/markdown/syntax
Details about ioslides presentation using markdown
http://rmarkdown.rstudio.com/ioslides_presentation_format.html