View source: R/pk_trendyspline.R
trendyspliner.plot.perms | R Documentation |
Compare how the permuted trend splines fit with the real data. Provides visual support for p values.
trendyspliner.plot.perms(data = NULL, xlabel = NULL, ylabel = NULL)
data |
Required: The results object from the trendyspliner function |
xlabel |
Optional: Title (as string) to print on the x axis |
ylabel |
Optional: Title (as string) to print on the y axis |
# Loads ggplot2 dependency permsplot <- trendyspliner.plot.perms(results, xlabel='Time', ylabel='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.