fact | R Documentation |

Finds the largest x for which n %% x == 0

```
fact(n)
```

`n` |
number of plots to fit. |

Obtained here: https://stackoverflow.com/questions/32017327/calculate-the-optimal-grid-layout-dimensions-for-a-given-amount-of-plots-in-r

An integer

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.