Description Usage Arguments Examples
Plot time trend
1 2 3 4 5 6 7 8 9 10 11 12 13 |
data |
Data object |
variables |
which variables do you want to see |
time_variable |
choose between month or wave |
filter_value |
which value of response e.g. 1 - most of the time |
title |
specify title |
xlab |
specify xlab |
ylab |
specify ylab |
var_names |
to relabel the header on the plot |
max_value |
adjust the y axis |
color |
change the color, available range = 0-1 |
return |
do you want to get data or plot – I like this to |
1 2 3 4 5 6 7 8 9 10 | plot_time_trend(data = iCARE,
variables = c(impacvd_sq003, impacvd_sq001, impacvd_sq002),
filter_value = 1,
time_variable = wave, # test out for month if you wish
var_names = c("impacvd_sq003" = "Depression",
"impacvd_sq001" = "Anxiety",
"impacvd_sq002" = "Loneliness"),
max_value = 25,
title = "Trend over waves of survey",
return = "plot")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.