visualizeFeatureSpline {MetaLonDA} | R Documentation |
Visualize the feature trajectory with the fitted Splines
Description
Plot the longitudinal features along with the fitted splines
Usage
visualizeFeatureSpline(
df,
model,
method,
text,
group.levels,
unit = "days",
ylabel = "Normalized Count",
col = c("blue", "firebrick"),
prefix = "Test"
)
Arguments
df |
dataframe has the Count , Group, ID, Time |
model |
the fitted model |
method |
The fitting method (negative binomial, LOWESS) |
text |
feature name |
group.levels |
The two level's name |
unit |
time unit used in the Time vector (hours, days, weeks, months, etc.) |
ylabel |
text to be shown on the y-axis of all generated figures (default: "Normalized Count") |
col |
two color to be used for the two groups (eg., c("red", "blue")). |
prefix |
prefix to be used to create directory for the analysis results |
References
Ahmed Metwally (ametwall@stanford.edu)
[Package MetaLonDA version 1.1.8 Index]