{r set-up, include = FALSE} to suppress this set up code.{r plot1, fig.height = 3, fig.width = 5}, replacing plot1 with a meaningful label and the height and width with values appropriate for your write up.fig_width and fig_height options in your YAML header as shown below:---
title: "Your Title"
author: "Team Name + Group Members"
output:
pdf_document:
fig_width: 5
fig_height: 3
---
Replace the height and width values with values appropriate for your write up.
Arrange plots in a grid, instead of one after the other. This is especially useful when displaying plots for exploratory data analysis and to check assumptions.
If you’re using ggplot2 functions, the patchwork package makes it easy to arrange plots in a grid. See the documentation and examples here.
If you’re using base R function, i.e. when using the binnedplot function, put the code par(mfrow = c(rows,columns)) before the code to make the plots. For example, par(mfrow = c(2,3)) will arrange plots in a grid with 2 rows and 3 columns.
Be sure all plot titles and axis labels are visible and easy to read.
coord_flip() to flip the x and y axes on the plot. This is useful if you a bar plot with an x-axis that is difficult to read due to overlapping text. See Section 2.2.2. for an example.cr_col will be difficult for the reader to understand, use carColor instead.# and the title, so the header renders correctly. For example, ###Section Title will not render as header, but ### Section Title will.kable function to neatly output all tables and model output. This will also ensure all model coefficients are displayed.
digits option to display only 3 or 4 significant digits.{r model, results = HIDE} to suppress the iteration output.