## len supp dose
## 1 4.2 VC 0.5
## 2 11.5 VC 0.5
## 3 7.3 VC 0.5
## 4 5.8 VC 0.5
## 5 6.4 VC 0.5
## 6 10.0 VC 0.5
fit <- lm(len ~ dose, data = Toothdata)
b <- fit$coefficients
plot(len ~ dose, data = Toothdata)
abline(lm(len ~ dose, data = Toothdata))Figure 1 : The tooth growth of guinea pig when given variable amounts vitamin C
The slope of the regression line is 9.7635714
“gene are like story, and Dna is the language that the story is written in”[1]
– Arjun
hard-weinberg formula
\[p^2 + 2Pq + q^2 = 1\]
\[\Theta = \begin{pmatrix}\alpha & \beta\\ \gamma & \delta \end{pmatrix}\]
Eval (T or F): whether ot not to evaluvate the code chunk
Echo (T of F): whether or not to show the code for the chunk, but results will still print
## [1] "Hello World"
Cache: If enable, the same code chink will not be evaluated the next time that the knitr is run. Great for the code that has long run time.
fig.width or fig.height: the size of the R plot(photo) in inches. The figures are the first written to the knitr document then to files that are saved separated.
out.width or out height :The output size of the R plots In the R document
fig.cap: Words for the figure
We can add table of content to out HTML document. we can do this by altering the YAML title: “HTML_1” author: “Arjun” date: “2024-01-21” output: html_document: toc: true toc_float: true
toc( T or F) toc_float(T or F)
you can also add tab in a reports. to do this you need to specify each section that you want to tab it “{.tabset}” after the line, Every subsequent header will be a new tab
Highlights the words or output of the documents
cerulean journal flatly readable spacelab united cosmo lumen paper sandstone simplex yeti null
you can also change the colour by specifying highlight
default tango payments kate monochorme espresso zenburn hadlock textmate
Fold the code by hiding with arrow
code_folding : hide