link_plot: A very basic plotting for aggregate data that plots a linked...

View source: R/link_plot.R

link_plotR Documentation

A very basic plotting for aggregate data that plots a linked scatter plot.

Description

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

Usage

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

Arguments

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.

Examples

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

timcdlucas/agouti documentation built on Feb. 8, 2024, 6:12 p.m.