permuspliner.plot.permsplines: Plot permuted splines along the real data

View source: R/pk_permusplinectomy.R

permuspliner.plot.permsplinesR Documentation

Plot permuted splines along the real data

Description

Compare how the permuted splines fit with the real data. Provides visual support for p values.

Usage

permuspliner.plot.permsplines(data = NULL, xvar = NULL, yvar = NULL)

Arguments

data

The results object from the permuspliner function

xvar

Name (as string) of the longitudinal x variable in the data

yvar

Name (as string) of the response/y variable in the data

Examples

permsplot <- permuspliner.plot.permsplines(results, xvar='Time', yvar='Weight')

# View the plot
permsplot

# Save the plot as PNG file
ggsave(permsplot, file = 'my_plot.png', dpi=300, height=4, width=4)


RRShieldsCutler/splinectomeR documentation built on April 24, 2022, 2:20 a.m.