Open matiasandina opened 2 years ago
I believe that something like this:
ggplot(wombats, aes(x=frame, behaviour=behaviour, y=wombat)) + geom_ethogram(remove_nas = F)
Should return this
But the NAs should be forcefully colored in gray. Maybe this is one of the things that could be handled by setup_data #8 ?
NAs
setup_data
I think we can do this here
https://github.com/matiasandina/ggethos/blob/2fd669c63afb056003e24623bf26a5e9781fda12/R/ggethos.R#L108-L110
Something like
if (remove_nas) { ... } else{ data <- mutate(data, colour=ifelse(is.na(colour), "gray50", colour)) }
I believe that something like this:
Should return this
But the
NAs
should be forcefully colored in gray. Maybe this is one of the things that could be handled bysetup_data
#8 ?