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

scales should be able to wrap #11

Closed
qgeissmann opened this issue Nov 22, 2017 · 1 comment
Closed

scales should be able to wrap #11

qgeissmann opened this issue Nov 22, 2017 · 1 comment

Comments

@qgeissmann
Copy link
Contributor

It would be useful to have the labelers wrap time in the x scales, optionally.
e.g.
scale_x_hours gives breaks at:
[0, 6, 12, 18, 24, 30, 36]
we would get instead:
[0, 6, 12, 18, 0, 6, 12]

@qgeissmann
Copy link
Contributor Author

metadata <- data.frame(id = sprintf("toy_experiment | %02d", 1:20),
                   condition=c("A","B"))
dt <- toy_activity_data(metadata,3)
pl <-  ggetho(dt[t < days(2)], aes(y=asleep)) + stat_pop_etho()
pl + scale_x_hours(time_wrap = hours(24))

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant