Learn R Programming

refund.shiny (version 1.0)

make_linCom: Create lincom plot for FPCA panels

Description

Produces a ggplot with mean and sliders to change weighting of each PC; allows you to obtain range of potential fitted values.

Usage

make_linCom(obj, pc_weights, response_scale = FALSE)

Arguments

obj

fpca object to be plotted.

pc_weights

User-selected weights for FPCs

response_scale

Scale of reponse to be plotted. If TRUE results are plotted on response scale, if FALSE results are plotted on natural scale.