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

Tweak position of categorical data #1109

Closed
tongcx opened this Issue May 18, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@tongcx

tongcx commented May 18, 2015

For the following example

x <- c(1,3,2,5)
y <- c("a","c","d","c")
qplot(x, y)

How do I move all points a bit downward? I can use position_jitter, but that's random. I think the best solution is to program a customized version of sth like position_jitter. However after reading source code
https://github.com/hadley/ggplot2/blob/master/R/position-jitter.r
https://github.com/hadley/ggplot2/blob/master/R/position-.r
I am still not clear how to achieve this.

@hadley

This comment has been minimized.

Member

hadley commented Jun 10, 2015

Maybe call it position nudge?

@hadley hadley closed this in 26776c3 Jun 11, 2015

@lock lock bot locked as resolved and limited conversation to collaborators Jun 20, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.