View source: R/pk_permusplinectomy.R
permuspliner.plot.permsplines | R Documentation |
Compare how the permuted splines fit with the real data. Provides visual support for p values.
permuspliner.plot.permsplines(data = NULL, xvar = NULL, yvar = NULL)
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 |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.