Open mdingemanse opened 3 months ago
Right now geom_turn() will merrily plot whatever you serve it. Whether it is a single source:
geom_turn()
dplyr::filter(source == "/dutch2/DVA9M") |> dplyr::filter(end < 60000) |> ggplot(aes(x = end, y = participant)) + geom_turn(aes( begin = begin, end = end)) + xlab("Time (ms)") + ylab("") + theme_turnPlot()
Or the whole dataset, merging things from multiple sources, which doesn't make sense:
data |> ggplot(aes(x = end, y = participant)) + geom_turn(aes( begin = begin, end = end)) + xlab("Time (ms)") + ylab("") + theme_turnPlot()
I think in a case like the latter, where multiple conversations risk being plotted over each other, geom_turn() should issue a warning:
Looks like you're trying to plot turns from multiple conversations. For better results, try to plot a single source, or facet by source.
Right now
geom_turn()
will merrily plot whatever you serve it. Whether it is a single source:Or the whole dataset, merging things from multiple sources, which doesn't make sense:
I think in a case like the latter, where multiple conversations risk being plotted over each other,
geom_turn()
should issue a warning: