Description Usage Arguments Value
View source: R/alpscarf_plot.R
Alpscarf plot generation
1 2 3 4 5 |
alp_df |
a data frame containing the bar width/height info of Alpscarf, contains at least 6 columns "AOI" "trial" "bar_position" "dwell_duration_log" "seq_bar_length" "re_reading_bar_length" |
palette |
the color definition |
focus_mode |
to select between transition-focus mode and duration-focus mode |
ymax |
the range (in y-axis) of plot |
plot_type |
to select between Alpscarf plot and traditional scarf plot |
creek_offset |
to adjust the position of creeks, default = 0.04 |
creek_size |
to adjust the size of creeks, default = 2 |
title |
print title; e.g., participant name |
NORMALIZED_VIEW |
to select between normalized view (TRUE) and unnormalized view (FALSE), default = TRUE. In normalized view, all generated Alpscarf are in the same length. In unnormalized view, users need to specify the maximum length of generated Alpscarf. |
max_nr_transitions |
specify the maximum number of transitions in given dataset. Only used in unnormalized view (NORMALIZED_VIEW= FALSE). |
max_sum_dwell_duration_log |
specify the maximum number of the sum of total dwell durations (in log scale) in given dataset. Only used in unnormalized view. (NORMALIZED_VIEW= FALSE) |
Alpscarf plot as a ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.