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

ggethos fails with x of class datetime #6

Open
matiasandina opened this issue Oct 30, 2022 · 3 comments
Open

ggethos fails with x of class datetime #6

matiasandina opened this issue Oct 30, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@matiasandina
Copy link
Owner

matiasandina commented Oct 30, 2022

This used to work, no longer the case, it outputs nothing.

ggplot(wombats_duration, aes(x = start_dt, y = wombat, colour = behaviour)) +
     geom_ethogram() +
     facet_wrap(~ trial, scales = "free")

Adding behaviour causes it to fail

ggplot(wombats_duration, aes(x = start_dt, y = wombat, behaviour = behaviour, colour = behaviour)) +
  geom_ethogram() +
  facet_wrap(~ trial, scales = "free")

Warning messages:
1: Computation failed in `stat_etho()`:
'x' must be a vector of an atomic type 
2: Computation failed in `stat_etho()`:
'x' must be a vector of an atomic type 
3: Computation failed in `stat_etho()`:
'x' must be a vector of an atomic type 
4: Computation failed in `stat_etho()`:
'x' must be a vector of an atomic type 
@matiasandina matiasandina added the bug Something isn't working label Oct 30, 2022
@matiasandina
Copy link
Owner Author

matiasandina commented Mar 28, 2023

This is working with dplyr branch and with #16.

@matiasandina
Copy link
Owner Author

My bad...

This is the expected output

ggplot(filter(wombats_duration, wombat=="pomelo"), 
    aes(x = start_dt, xend=end_dt, y = wombat, behaviour = behaviour, colour = behaviour)) +
    geom_ethogram() + 
    facet_wrap(~trial, scales="free")

image

But we get

ggplot(filter(wombats_duration, wombat=="pomelo"), 
    aes(x = start_dt, y = wombat, behaviour = behaviour, colour = behaviour)) 
    geom_ethogram() + 
    facet_wrap(~trial, scales="free")

image

@matiasandina matiasandina reopened this Mar 28, 2023
@matiasandina
Copy link
Owner Author

It has been working with class datetime fine...needs to be fully tested again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant