This function plot the smoothed mean and error band of meta features grouped by a factor variable provided by the user.
plot_metafeature(metafeature, group, coverage = 0.95, bws = NULL, nrow = 1)A ggplot2 object.
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.
A subject by 2 data.frame with the first column for subject ID and second column for group membership.
The coverage rate for the error band. Default is 0.95.
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().
The number of rows to plot the features used in function ggplot2::facet_wrap().
Examples can be found in tempted_all, ratio_feature and aggregate_feature.