trendyspliner.plot.perms: Plot permuted trends behind the real data

View source: R/pk_trendyspline.R

trendyspliner.plot.permsR Documentation

Plot permuted trends behind the real data

Description

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

Usage

trendyspliner.plot.perms(data = NULL, xlabel = NULL, ylabel = NULL)

Arguments

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

Examples


# 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)


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