« first day (1553 days earlier)      last day (1745 days later) » 

6:02 AM
morning all
 
sweaty hello :-)
@thelatemail I bet they're blocking mostly troll questions like "hey SO, how're you doing ? I'm bored..."
 
6:51 AM
Hello
 
 
3 hours later…
9:44 AM
Can someone confirm this for me?
library(ggplot2)

set.seed(357)
xy <- data.frame(group = "a", value = rnorm(6))
xy2 <- data.frame(group = "a", value = rep(0, 6))

myscale <- scale_y_continuous(limits = c(-2, 2))

# scatters horizontally only
ggplot(xy, aes(x = group, y = value)) +
  geom_jitter(width = 0.25) +
  myscale

# scatter horizontally only
ggplot(xy, aes(x = group, y = value)) +
  geom_jitter(width = 0.25, height = 0) +
  myscale

# scatters horizontally AND vertically
ggplot(xy2, aes(x = group, y = value)) +
  geom_jitter() +
It would seem scattering is done consistently only for non-integers.
Looks like this is a known issue: github.com/tidyverse/ggplot2/issues/2453
If I would be designing this, I would have it fixed at height = 0 by default (or width for horizontal plots). geom_jitter is in my view an alternative to geom_point, that jitters the points in the only dimension that makes sense when using a factor on x axis.
 
 
1 hour later…
11:15 AM
@RomanLuštrik Indeed...non-integers only
 
@Sotos it's more related to variance, though.
 
 
1 hour later…
 
1 hour later…
1:36 PM
Any more answers here? :D
 
@Sotos sigh, I only posted because it had excel tag on it. Yes, for R it is a dupe.
This post is now in his arsenal to use it against me when I hammer his post :)
 
1:52 PM
hehehe indeed. Imagining him doing an evil laugh :P
 
Meh, you can't really plot ggplot2 plots using a promise. rstudio.github.io/promises/articles/…
 
2:13 PM
What is the idea? Plot empty if data is still in "promise" and when available plot for real? (need to read up on that promise)
 
@Sotos @zx8754 I think OP is asking there if multiple columns have same value.
most of the answers are finding columns with one unique value.
 
@RonakShah I think you are right!!!
Good catch!
@RonakShah I reopened
 
2:37 PM
@Sotos thanks...choosing a right example is so important. It is easy to get misinterpreted.
 
 
2 hours later…
4:48 PM
 
 
2 hours later…

« first day (1553 days earlier)      last day (1745 days later) »