plot_metafeature {tempted}R Documentation

Plot nonparametric smoothed mesan and error bands of meta features versus time

Description

This function plot the smoothed mean and error band of meta features grouped by a factor variable provided by the user.

Usage

plot_metafeature(metafeature, group, coverage = 0.95, bws = NULL, nrow = 1)

Arguments

metafeature

metafeature_ratio from the output of ratio_feature and tempted_all, metafeature_aggregate from the output of ratio_feature and tempted_all, or metafeature_aggregate_est from the output of ratio_feature.

group

A subject by 2 data.frame with the first column for subject ID and second column for group membership.

coverage

The coverage rate for the error band. Default is 0.95.

bws

The smoothness parameter for the smoothing lines and error bands. A larger value means a smoother line. Default is NULL and calculated by function np::npreg().

nrow

The number of rows to plot the features used in function ggplot2::facet_wrap().

Value

A ggplot2 object.

See Also

Examples can be found in tempted_all, ratio_feature and aggregate_feature.


[Package tempted version 0.1.1 Index]