plot.mxFDA {mxfda}R Documentation

Plot mxFDA object

Description

Plot mxFDA object

Usage

## S3 method for class 'mxFDA'
plot(x, filter_cols = NULL, ...)

Arguments

x

object of class mxFDA to be plotted

filter_cols

column key to filter

...

additional paramters including y, what, and sampleID to inform whats to be plotted

Details

[Stable]

If there are multiple metrics that are included in the derived table, an extra parameter filter_cols in the format of c(Derived_Column = "Level_to_Filter") will return curves from the Derived_Column with the level Level_to_Filter

When plotting mFPCA objects, additional arguments level1 and level2 help indicate which FPCA from level 1 and level 2 to plot

Value

object of class ggplot compatible the ggplot2 aesthetics

Author(s)

Alex Soupir alex.soupir@moffitt.org

Examples

#set seed
set.seed(333)
#plotting summary
data("ovarian_FDA")
plot(ovarian_FDA, y = 'fundiff', what = 'uni g')
#running fpca
ovarian_FDA = run_fpca(ovarian_FDA, metric = "uni g", r = "r", value = "fundiff",
                       lightweight = TRUE,
                       pve = .99)
#plot fpca
plot(ovarian_FDA, what = 'uni g fpca', pc_choice = 1)


[Package mxfda version 0.2.1 Index]