link_plot | R Documentation |

This is a scatter plot which data from the aggregate unit "linked" by a line and colour coded to match.

```
link_plot(formula, data, ID = ID, weights = weights)
```

`formula` |
A formula for the y and x variables. |

`data` |
A data frame suitable for aggregate outputs models. |

`ID` |
The column to use as the group ID column. Unquoted value. |

`weights` |
Which column to use as within group weights such as population or time. |

```
data(madagascar_malaria)
link_plot(case_rate ~ LSTmean, data = madagascar_malaria, ID = ID, weights = pop)
```

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.