Skip to content

Instantly share code, notes, and snippets.

@tbobin
Created June 29, 2018 06:08
Show Gist options
  • Save tbobin/ca0d60a988d9ef841903c069af9bb655 to your computer and use it in GitHub Desktop.
Save tbobin/ca0d60a988d9ef841903c069af9bb655 to your computer and use it in GitHub Desktop.
breast %>%
ggplot(aes(x = ER, y =time_survival, fill= factor(event_survival))) +
geom_dotplot(binaxis = "y", stackdir = "center", dotsize = 0.6) +
theme(legend.position = "top") +
scale_fill_discrete(name = "Censored", label = c("yes","no")) +
coord_flip()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment