plot_mtp: Plots the curves of a 'mtp' object

Description Usage Arguments Value See Also Examples

Description

Plots the curves of a mtp object

Usage

1
plot_mtp(mtp, x_name = "hours", y_name = "value", title = "my title")

Arguments

mtp

A mtp object

x_name

The name of the variable to go on the x-axis, defaults to hours

y_name

The name of the variable to go on the y-axis, defaults to value

title

The title of the plot, defaults to "my plot"

Value

Returns a ggplot object that can be manipulated or printed

See Also

plot_mtp_list for creating a list of ggplot objects and plot_to_pdf for plotting a list of mtp objects to pdf

Other plot.functions: plot_mtp_list, plot_to_pdf

Examples

1
2
3
4
5
6
7
# df_mtp is a data frame of class mtp that comes with the package
str(df_mtp)

# plot a specific mtp object
df_plot <- df_mtp$mtp[[1]]
df_plot$Name <- as.character(1:96)
plot_mtp(df_plot, title = "a MTP data frame")

JannikVindeloev/RAPr documentation built on May 7, 2019, 10:21 a.m.