This is a function to prepare data for visualization using make_gp_plot.

format_gp(data, fit, seed = 1)

Arguments

data

A list containing phenotype, genotype, treatment, and subject, which must be named "y", "g", "t", and "subject ", respectively.

fit

A list obtained from the do_bms.

seed

A seed for RNG.

Value

A list of data frames.