Skip to contents

Models run come in an output that require a little work to get plotted. This function helps clean up and get the data prepared for plotting in particular.

Usage

prep_model_output(data, model, y, reverse = FALSE)

Arguments

data

Data used in the model

model

model output

y

what goes on the y-axis

reverse

whether the categorical scale should be reversed

Value

fortified data for plotting