View source: R/plot_obs_predict.R
compare predicted curves (mean with 95% credible intervals) to observed curves
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | plot_obs_predict(
sfpca_data,
optimal_model,
data,
time_name,
response_name,
unique_subject_id,
subject_selected,
ymin,
ymax,
x_lab,
y_lab,
title = "observed vs. predicted"
)
|
sfpca_data: |
The prepared data list from prepare_data() function |
optimal_model: |
optimal sfpca model |
data: |
original dataset |
time_name: |
time variable from original dataset |
response_name: |
response variable from origina dataset |
unique_subject_id: |
unique subject id identifier |
subject_selected: |
interested subject for plotting |
ymin: |
minimum value of y axis range |
ymax: |
maximum value of y axis range |
x_lab: |
label for x axis |
y_lab: |
label for y axis |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.