Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document two typical user journeys & link them to current & needed functionality #68

Closed
mdingemanse opened this issue Aug 19, 2024 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation examples sample visualisations, user journeys etc. to demonstrate functionalities

Comments

@mdingemanse
Copy link
Contributor

mdingemanse commented Aug 19, 2024

Add these in the form of sections in the workflow.Rmd vignette.

@mdingemanse mdingemanse added the examples sample visualisations, user journeys etc. to demonstrate functionalities label Aug 19, 2024
@mdingemanse mdingemanse self-assigned this Aug 19, 2024
@mdingemanse mdingemanse added the documentation Improvements or additions to documentation label Aug 19, 2024
@bvreede
Copy link
Collaborator

bvreede commented Aug 20, 2024

Code used in developing add_lines:

conv_token <- conv |>
  tokenize() |>
  add_lines(time_columns="relative_time")


conv |>
  add_lines() |>
  ggplot(aes(x = line_end, y = line_participant)) +
  geom_turn(aes(
    begin = line_begin,
    end = line_end)) +
  geom_token(data = conv_token,
             aes(x = line_relative_time,
                 y = line_participant,
                 color = rank)) +
  xlab("Time (ms)") +
  ylab("") +
  theme_turnPlot()

@mdingemanse
Copy link
Contributor Author

some additions


conv_token <- conv |>
  tokenize() |>
  add_lines(time_columns="relative_time")

conv |>
  add_lines() |>
  ggplot(aes(x = line_end, 
             y = line_participant)) +
  geom_turn(aes(
    begin = line_begin,
    end = line_end,
    fill = load,
    colour = load),
    linewidth=0.4,
    alpha=0.8) +
  # geom_token(data = conv_token |> dplyr::filter(order=="first"),
  #            aes(x = line_relative_time,
  #                y = line_participant)) +
  geom_text(data = conv_token |> dplyr::filter(order=="only"),
            aes(x = line_relative_time,
                y=line_participant,
                label=token)) +
  scale_y_reverse(breaks = seq(1, max(conv_token$line_id))) +
  viridis::scale_colour_viridis(option="A") +
  viridis::scale_fill_viridis(option="A") +
  xlab("Time (ms)") +
  ylab("") +
  theme_turnPlot()

@mdingemanse
Copy link
Contributor Author

mdingemanse commented Aug 21, 2024

small todos

@bvreede
Copy link
Collaborator

bvreede commented Aug 26, 2024

@mdingemanse this can be closed now that #89 is merged, right?

@mdingemanse
Copy link
Contributor Author

Yes, thanks for noting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation examples sample visualisations, user journeys etc. to demonstrate functionalities
Projects
None yet
Development

No branches or pull requests

2 participants