I seen this figure and am not very sure how it was generated with the 'x' and 'o' values which are plotted for '1' and '0'.
Does any body have a clue into how to make this?
I seen this figure and am not very sure how it was generated with the 'x' and 'o' values which are plotted for '1' and '0'.
Does any body have a clue into how to make this?
To make @MrFlick's suggestion a bit more concrete, here's a reprex that comes close to recreating the plot you posted:
library(ggplot2)
set.seed(81)
df <- data.frame(x = rexp(200, 1/250),
y = rexp(200, 1/250),
value = c("O", "X"), stringsAsFactors = FALSE)
ggplot(df, aes(x, y, colour = value, shape = value)) +
geom_point(size = 4, alpha = 0.5) +
scale_shape_identity() +
scale_colour_manual(values = c("dodgerblue", "red")) +
geom_rug(colour = "gray30", sides = "b") +
labs(x = "", y = "") +
scale_y_continuous(breaks = 1:3 * 500) +
theme_bw() +
theme(legend.position = "none",
axis.text.x = element_blank(),
text = element_text(size = 20),
axis.line = element_line(size = 1))