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

Consider y dodging #9

Open
matiasandina opened this issue Nov 13, 2022 · 0 comments
Open

Consider y dodging #9

matiasandina opened this issue Nov 13, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@matiasandina
Copy link
Owner

matiasandina commented Nov 13, 2022

It could be potentially useful to plot something like this:

ggplot(wombats, aes(x=frame, behaviour=behaviour, y=trial, color=wombat)) +
 geom_ethogram()

image

This produces the warning

In FUN(X[[i]], ...) :
  Some behaviours will be drawn with the same value for 'x' - is this a mistake?

Which is correct functioning of ggethos. However, it might be desirable to allow for dodging in the y axis.
In addition, ethograms are not properly calculated because the warning is currently isolated via an else if from the aggregating.

Potentially interesting when calling things with interaction()

ggplot(wombats, aes(x=frame, behaviour=behaviour, y=trial, color=interaction(wombat,trial))) +
    geom_ethogram()
@matiasandina matiasandina added the enhancement New feature or request label Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant