This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
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
library(ggplot2)
ggplot(mtcars, aes(mpg, disp)) + geom_point()
You can also embed plots, for example:
The R session information for compiling this doc is shown below
sessionInfo()
## R version 3.4.4 (2018-03-15)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 18.04.1 LTS
##
## Matrix products: default
## BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
## LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
## [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
## [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
## [9] LC_ADDRESS=C LC_TELEPHONE=C
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] ggplot2_2.2.1
##
## loaded via a namespace (and not attached):
## [1] Rcpp_0.12.18 digest_0.6.17 rprojroot_1.3-2 plyr_1.8.4
## [5] grid_3.4.4 gtable_0.2.0 backports_1.1.2 magrittr_1.5
## [9] evaluate_0.11 scales_0.5.0 pillar_1.1.0 rlang_0.1.6
## [13] stringi_1.2.4 lazyeval_0.2.1 rmarkdown_1.8 labeling_0.3
## [17] tools_3.4.4 stringr_1.3.1 munsell_0.4.3 yaml_2.1.16
## [21] compiler_3.4.4 colorspace_1.3-2 htmltools_0.3.6 knitr_1.19
## [25] tibble_1.4.2
Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.