Created
August 25, 2017 20:52
-
-
Save aurielfournier/3846fbc2bc8dd10ea60f9fdeb4d3f03f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
library(tidyverse) | |
faithful$group <- factor(ifelse(faithful$eruptions>3, 1, 0)) | |
subfaith <- faithful %>% filter(group=="1") | |
ggplot(data=faithful,aes(waiting, eruptions, color = group)) + | |
geom_point() + | |
stat_ellipse(data=subfaith,aes(waiting, eruptions, color = group)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment