View source: R/plot_delta_cv.R
plot_delta_cv | R Documentation |
This function loads a dataframe as input and returns a box plot for Delta C and Delta V values.
plot_delta_cv(
df,
cv_label,
utterance_id,
cv_duration,
save_fig = FALSE,
fig_path = NULL
)
df: |
a data frame containing cv_labels, utterance_id, and cv_duration values. |
cv_label: |
whether a segment is a C(onsonant) or a V(owel) |
utterance_id: |
each unique utterance should have a unique id |
cv_duration: |
the duration of C or V |
save_fig: |
the default value is set to |
fig_path: |
the default value is set to |
A boxplot for Delta C and Delta V values.
Cong Zhang, cong.zhang@ru.nl
df <- data.frame (cv_label = c("c", "v", "c", "v","c", "v", "c", "v"),
utterance_id = c("utt_1", "utt_1", "utt_2", "utt_2",
"utt_1", "utt_1", "utt_2", "utt_2"),
cv_duration = c(0.1, 0.8, 0.2, 0.5, 0.3, 0.3, 0.4, 0.7))
# Saving the plot
plot_delta_cv(df, cv_label, utterance_id, cv_duration, save_fig=T, fig_path='C:/Users/congzhang/Desktop/')
# Not saving the plot
plot_delta_cv(df, cv_label, utterance_id, cv_duration, save_fig=F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.