[This article was first published on

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

**Software for Exploratory Data Analysis and Statistical Modelling**, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

We can add coloured boxes with text or mathematics into a **LaTeX** beamer presentation which is particularly useful if we have definitions, theorem or computer code to highlight this information that may not be so accessible within a paragraph of text.

Fast Tube by Casper

The easiest way to create a box is to use the various pre-defined environments such as definition:

begin{definition} The simple linear regression model describes the relationship between a response variable and a single explanatory variable. end{definition}

We might want to create a box with our own title in which case the **exampleblock** environment can be used with the new title as an argument to this environment:

begin{exampleblock}{Linear Regression Model} $Y_{i} = beta_{0} + beta_{1} X_{i} + epsilon_{i}$ end{exampleblock}

Other useful resources are provided on the Supplementary Material page.

To

**leave a comment**for the author, please follow the link and comment on their blog:**Software for Exploratory Data Analysis and Statistical Modelling**.R-bloggers.com offers

**daily e-mail updates**about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.